On Wed, Sep 05, 2018 at 09:36:35PM +0200, Nicolas Iooss wrote: > Hello, > > While reviewing the last patch sent by Vit Mojzis, I stumbled upon > something that does not feel right in "semanage user". Both "semanage > user --help" and "man 8 semanage-user" state: > > usage: semanage user [-h] [-n] [-N] [-S STORE] [ --add ( -L LEVEL -R > ROLES -r RANGE -s SEUSER selinux_name) | ... > > I am wondering what are the meaning of "-s SEUSER" and "selinux_name" > there. If I try to use "-s" option, semanage complains: > > semanage: error: unrecognized arguments: -s If i recall correctly think "-s selinux_name" is right. You cannot add a seuser withuser giving it a name. > > Therefore it seems that the usage would rather be "... --add ( -L > LEVEL -R ROLES -r RANGE SEUSER)". Looking at the code, it seems that > parser_add_seuser() is not used in setupUserParser() [1], and > everything works fine when using "semanage user" without -s option. Am > I missing something obvious, or should I write a patch which fixes the > documentation? > > Cheers, > Nicolas > > [1] https://github.com/SELinuxProject/selinux/blob/libsemanage-2.8/python/semanage/semanage#L403 > > _______________________________________________ > Selinux mailing list > Selinux@xxxxxxxxxxxxx > To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. > To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx. -- Key fingerprint = 5F4D 3CDB D3F8 3652 FBD8 02D5 3B6C 5F1D 2C7B 6B02 https://sks-keyservers.net/pks/lookup?op=get&search=0x3B6C5F1D2C7B6B02 Dominick Grift
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.