[bugs] [illumos gate - Feature #1213] (New) chmod could handle empty access mask as wildcard when removing user/group ACEs

illumos bugs bugs at lists.illumos.org
Thu Jul 14 08:33:01 PDT 2011


Issue #1213 has been reported by Yuri Pankov.

----------------------------------------
Feature #1213: chmod could handle empty access mask as wildcard when removing user/group ACEs
https://www.illumos.org/issues/1213

Author: Yuri Pankov
Status: New
Priority: Normal
Assignee: 
Category: cmd - userland programs
Target version: 
Difficulty: Medium
Tags: needs-triage


The idea is to make chmod handle empty access mask as wildcard when removing user/group ACEs, e.g.:
<pre>
$ mkdir test; chmod A+user:root:rwx:allow,user:bin:rwx:deny test; ls -Vd test; LD_PRELOAD=~/ws/local/proto/root_i386/usr/lib/libsec.so.1 chmod A-user:root::allow test; ls -Vd test; LD_PRELOAD=~/ws/local/proto/root_i386/usr/lib/libsec.so.1 chmod A-user:bin::deny test; ls -Vd test
drwxr-xr-x+  2 yuri     staff          2 Jul 14 19:28 test
              user:root:rwx-----------:-------:allow
               user:bin:rwx-----------:-------:deny
                 owner@:rwxp--aARWcCos:-------:allow
                 group@:r-x---a-R-c--s:-------:allow
              everyone@:r-x---a-R-c--s:-------:allow
drwxr-xr-x+  2 yuri     staff          2 Jul 14 19:28 test
               user:bin:rwx-----------:-------:deny
                 owner@:rwxp--aARWcCos:-------:allow
                 group@:r-x---a-R-c--s:-------:allow
              everyone@:r-x---a-R-c--s:-------:allow
drwxr-xr-x   2 yuri     staff          2 Jul 14 19:28 test
                 owner@:rwxp--aARWcCos:-------:allow
                 group@:r-x---a-R-c--s:-------:allow
              everyone@:r-x---a-R-c--s:-------:allow
</pre>

While here, we should deny creating ACEs with empty access mask as they make no sense (or am I missing something here)?

Patch attached.


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://www.illumos.org/my/account



More information about the bugs mailing list