[Bug 14431] New: adduser will add a user folder with 'shadow_t'
bugzilla at busybox.net
bugzilla at busybox.net
Tue Dec 7 07:30:31 UTC 2021
https://bugs.busybox.net/show_bug.cgi?id=14431
Bug ID: 14431
Summary: adduser will add a user folder with 'shadow_t'
Product: Busybox
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Standard Compliance
Assignee: unassigned at busybox.net
Reporter: 15256067679 at 163.com
CC: busybox-cvs at busybox.net
Target Milestone: ---
I compile the busybox with SELinux support(I tried both with 1.33.x and
1.34.1), then I try to use adduser to create a new user:
# adduser user_1
Changing password for user_1
New password:
Bad password: too weak
Retype password:
Passwords don't match
passwd: password for user_1 is unchanged
# cd /home/
# ls -Z
system_u:object_r:user_home_dir_t:s0 default
system_u:object_r:shadow_t:s0 user_1
and I check the source code in adduser.c:
the function 'selinux_preserve_fcontext(old_fd)'in
'update_passwd(bb_path_shadow_file, pw.pw_name, p, NULL);' will change the
filecontext for the file that adduser make to 'shadow_t' and I can't find where
to change it back.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list