Description of problem: The man page for selinuxdefcon gives the synopsis as selinuxdefcon [-l level] user [fromcon] but if the "fromcon" argument is omitted the behaviour is sometimes an error. Version-Release number of selected component (if applicable): libselinux-utils-2.0.80-1.fc11 How reproducible: Generally Steps to Reproduce: 1. type selinuxdefcon $USER at a command prompt 2. 3. Actual results: The behaviour varies maybe depending on context. (Logged in via ssh) $ secon user: unconfined_u role: unconfined_r type: unconfined_t sensitivity: s0 clearance: s0:c0.c1023 mls-range: s0-s0:c0.c1023 $ selinuxdefcon $USER selinuxdefcon: Invalid argument but (in a vnc session) $ secon user: system_u role: system_r type: unconfined_notrans_t sensitivity: s0 clearance: s0 mls-range: s0 $ selinuxdefcon $USER unconfined_u:system_r:rpm_script_t:s0-s0:c0.c1023 Expected results: The first should output an selinux context (or a comprehensible error message) Additional info:
Still present in Fedora 12
Fixed man page in libselinux-2.0.90-3
Thanks. The error message seems to be correct from at least libselinux-utils-2.0.87-1.fc12.x86_64 and the libselinux-2.0.90-3 man page makes the reason clear.