usermod/group* patch
A message that is not in the archive (sent off-list or not yet received): [email protected]
In trying out the new policy I rn across a problem with userdel (which uses the useradd.te policy). I got a denied { rmdir } on a user's home directory when I tried to remove the account.
I'm not sure when this was changed, but the useradd_t user_home_dir_t directory line went from:
file_type_auto_trans(useradd_t, home_root_t, user_home_dir_t)
to
file_type_auto_trans(useradd_t, home_root_t, user_home_dir_t, dir)
Specifying the 'dir' results in useradd_t not getting rmdir permission (necessary for userdel when removing the account's home directory). This is because file_type_auto_trans (actually its subcall to file_type_trans) only gives create_file_perms when a fourth argument is given. When a fourth argument is not specified file_type_trans produces two relevant rules, one of which grants the target type (arg 3) of class dir, create_dir_perms.
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.