Open-Source-Software-Entwicklung und Downloads

Browse Subversion Repository

Diff of /trunk/1.6.x/ccs-patch/README.ccs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1578 by kumaneko, Thu Sep 11 03:40:09 2008 UTC revision 1606 by kumaneko, Fri Sep 19 05:02:59 2008 UTC
# Line 1590  Fix 2008/09/11 Line 1590  Fix 2008/09/11
1590        This change makes it impossible to revoke permission to write to        This change makes it impossible to revoke permission to write to
1591        /proc/ccs/ interface without killing the process, but it will be better        /proc/ccs/ interface without killing the process, but it will be better
1592        than nonfunctioning ccs-queryd program.        than nonfunctioning ccs-queryd program.
1593    
1594    Fix 2008/09/19
1595    
1596        @ Allow selecting a domain by PID.
1597    
1598          Sometimes we want to know what ACLs are given to specific PID, but
1599          finding a domainname for that PID from /proc/ccs/.process_status and
1600          reading ACLs from /proc/ccs/domain_policy by the domainname is very slow.
1601          Thus, I modified /proc/ccs/domain_policy to allow selecting a domain by
1602          PID. For example, to read domain ACL of current process from bash,
1603          run as follows.
1604    
1605          # exec 100<>/proc/ccs/domain_policy
1606          # echo select $$ >&100
1607          # while read -u 100; do echo $REPLY; done
1608    
1609          If a domain is once selected by PID, reading /proc/ccs/domain_policy will
1610          print only that domain if that PID exists or print nothing otherwise.
1611    
1612        @ Disallow concurrent /proc/ccs/ access using the same file descriptor.
1613    
1614          Until now, one process can read() from /proc/ccs/ while other process
1615          that shares the file descriptor can write() to /proc/ccs/ .
1616          But to implement "Allow selecting a domain by PID" feature, I disabled
1617          concurrent read()/write() because the feature need to modify read buffer
1618          while writing.

Legend:
Removed from v.1578  
changed lines
  Added in v.1606

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26