基于用户地址编址方式的 操作系统原型设计与实现_第1页
基于用户地址编址方式的 操作系统原型设计与实现_第2页
基于用户地址编址方式的 操作系统原型设计与实现_第3页
基于用户地址编址方式的 操作系统原型设计与实现_第4页
基于用户地址编址方式的 操作系统原型设计与实现_第5页
已阅读5页,还剩9页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、User-Oriented Addressing(Operating System Implementation),overnitary 2007.4,Operating System supports,UNIX-like OS for planetary computing assigns addresses to users constrains use of owned address only limits users view for interface and routes Our Approach New socket layer in the kernel insert use

2、r-address mapping examination in several kernel functions or system calls Relative Work ULN (User Layer Network),Relative Work,Based on kernel patch of ULN But we modified on: A different Data Structure and ioctl Interface Allow Multi-Mapping of user to address Cancel the privilege limitation of the

3、 usage of ports num1024 Transport to a new version of kernel Fix the bugs of original patch,Kernel Modification,Address Usage Checking To do user checking in several socket functions to block unauthorized address usage. Data structure and ioctl Interface To provides an user interface for super user

4、to adjust the user-address mapping.,TCP UOA checking At connect() for clients At bind() for servers,UDP UOA checking At bind() At sendmsg(),Address Usage Checking: IPv4,uoa_inet_autobind() Blocks autobind(), so actually blocks unbound connect (UDP) and unbound sendmsg (TCP,UDP) uoa_inet_bind() Block

5、s bind (TCP,UDP) uoa_tcp_connect() Blocks connect (TCP) uoa_raw_sendmsg() Blocks sendmsg (ICMP) uoa_raw_bind() Blocks bind (ICMP),Address Usage Checking: IPv6,uoa_ipv6_get_saddr() Most important one. It affect the selection of source address, so it affect unbound connect (UDP) and unbound sendmsg (T

6、CP,UDP,ICMP) uoa_inet6_bind() Blocks bind (TCP,UDP) uoa_tcp_v6_connect() Blocks connect (TCP) uoa_rawv6_bind() Blocks bind (ICMP),Data Structure,Maintain a user-address mapping link list. Both v4 and v6 version are alike. int insert_ip4_token(struct in_addr * addr, uid_t uid); Returns 1 if success,

7、-ERR. if error int check_ip4_token(struct in_addr * addr, uid_t uid); Returns 3 if a mapping of addr-uid exists. 2 if the user has mapping to other addresses, 1 if the address has mapping to other users, 0 if none of above. struct ip4_token *find_ip4_token(uid_t uid); Returns a mapping token of curr

8、ent uid uid_t find_ip4_token_uidbyaddr(struct in_addr *addr); Returns the uid of an exist mapping of addr, for the compatibility of ULN apps. int delete_all_ip4_tokens_byaddr(struct in_addr * addr); int delete_all_ip4_tokens_byusr(uid_t uid); int delete_ip4_token(struct in_addr * addr, uid_t uid); R

9、eturns the number of mapping token deleted, -ERR if error void print_ip4_tokens(void);,Ioctl Interface,Link to certain data structure control functions. SIOCAUOAMAP: insert_ip4_token SIOCGUOAMAP: find_ip4_token_uidbyaddr SIOCCUOAMAP: check_ip4_token SIOCDUOAMAP:delete_ip4_token SIOCUOADUSR:delete_al

10、l_ip4_tokens_byusr SIOCUOADADDR:delete_all_ip4_tokens_byaddr,Example,Now with the super user having assigned two different addresses for 2 normal users, both of them can set up a httpd server on *:80.,Contributions,Present a Problem for Architecture: Will the user-address mapping be 1-1, 1-n, n-1, o

11、r n-n? How about Loopback Addresses, Local Addresses and Multicast Address?,Further Work,To Build a intact Operating System Prototype, we still need to make: Configuration Tools To Let the system to be a distributable version, we still need to fix: The * binding problem Communication with user mode applications with /proc files,* binding problem,There are 2 types of address for a socket to bind: a certain address and * In current version of UOA,

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论