[ I'm Cc'ing [EMAIL PROTECTED] FYI, this is a continuation of discussion from the SELinux list: http://marc.info/?t=120645074000003&r=1&w=2 and the debian bug tracking system: http://bugs.debian.org/472590
The problem is that on an SELinux-enabled system, 'ls -l's "+", the "alternate access method" indicator, is useless, because it appears on every file: $ ls -glo /var total 164 drwxr-xr-x+ 3 4096 2008-03-29 08:43 kerberos drwxr-xr-x+ 39 4096 2008-03-29 08:43 lib drwxr-xr-x+ 2 4096 2008-03-27 17:33 local drwxrwxr-x+ 8 4096 2008-03-31 04:15 lock drwxr-xr-x+ 20 4096 2008-03-31 09:55 log lrwxrwxrwx+ 1 10 2008-03-28 23:33 mail -> spool/mail ... Newer POSIX allows any non-space character as the indicator, and that's what we're discussing now. ] Russell Coker <[EMAIL PROTECTED]> wrote: > On Wednesday 26 March 2008 04:31, Michael Stone <[EMAIL PROTECTED]> wrote: >> if (acl) then '+' >> else if (selinux) then '.' > > Should there be some special marking of files with both a SE Linux context and > an ACL? > > Pity that they didn't choose an "a" to mark an ACL which would then permit > using "A" for ACL + MAC. This is probably as good a time as any to make such a change, though I doubt it will make the cut for the upcoming release. I'd like to keep it simple (i.e., not try to encode all possible combinations). If you want to get full details, stat(1) is probably the program to change. I like Michael's suggestion. Rephrasing it, if (SELinux, with no other MAC or ACL) use '.' else if (any other combination of alternate access methods) use '+' If someone who already has a copyright assignment on file for coreutils wants to write the patch (including doc update, tests, NEWS, ChangeLog, etc.), please speak up ASAP. Otherwise I'll do it. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]