--- Begin Message ---
Subject: |
SELinux options in --help / manpage may be confusing |
Date: |
Tue, 08 Apr 2014 15:47:35 +0200 |
Hi,
recently I got one bug report, asking about mknod not running correctly
with old syntax
mknod -m 666 -Z system_u:object_r:random_device_t:s0 /dev/random2 c 1 9
This is not a bug, as since 8.22, short version of -Z doesn't accept
optional arguments.
However, --help and manpage is a bit misleading. I think we should split
the lines for -Z and --context , as both are doing a bit different
thing.
-Z restores the default SELinux context
--context=[CTX] restores the default SELinux context if no CTX is
specified, otherwise sets the SELinux/SMACK context to CTX.
Now, with having them both on one lines, it gives user the feeling that
-Z accepts argument, which may lead to scripts errors. This is not only
about mknod, but about all utilities with -Z option (and recent change
in behaviour)
Thanks in advance for consideration!
Greetings,
Ondrej
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#17220: SELinux options in --help / manpage may be confusing |
Date: |
Wed, 09 Apr 2014 14:18:27 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
Will push the attached soon.
thanks,
Pádraig.
context-clarification.patch
Description: Text Data
--- End Message ---