shadow_t
I've got shadow_t working correctly with my policy.
I have changed the spasswd.c program to relabel the /etc/passwd and /etc/shadow files after running /usr/bin/passwd, and I made a file_type_auto_trans() rule to have them default to shadow_t (which unfortunately gives a momentary situation where /etc/passwd will be unreadable). It would also be unfortunate if there was a power outage at that moment...
So I'm thinking of having a program run from a boot script to fix the type of /etc/passwd.
Also I've got vipw and adduser also working with shadow_t...
This isn't ideal, but the code for the chsh/chfn/vipw/etc programs is really ugly and I'm afraid of causing more problems than I fix if I change them.
Signature · 3 lines
I do not get viruses because I do not use MS software. If you use Outlook then please do not put my email address in your address-book so that WHEN you get a virus it won't use my address in the
Quoted 1 line
From field.
--
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.
Quoted 9 lines · Russell Coker
I've got
shadow_tworking correctly with my policy.I have changed the
spasswd.cprogram to relabel the/etc/passwdand/etc/shadowfiles after running/usr/bin/passwd, and I made afile_type_auto_trans()rule to have them default toshadow_t(which unfortunately gives a momentary situation where/etc/passwdwill be unreadable). It would also be unfortunate if there was a power outage at that moment...
Quoted 7 lines
So I'm thinking of having a program run from a boot script to fix the type of
/etc/passwd.Also I've got vipw and adduser also working with
shadow_t...This isn't ideal, but the code for the chsh/chfn/vipw/etc programs is really ugly and I'm afraid of causing more problems than I fix if I change them.
Can you clarify what you mean by the latter statements, i.e. have you created wrapper programs for vipw and adduser to relabel /etc/passwd from shadow_t to etc_t after completion, or have you patched these programs?
--
Stephen D. Smalley, NAI Labs
[email protected]
--
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.
Quoted 15 lines · Stephen Smalley
Quoted 14 lines · Russell Coker
I've got
shadow_tworking correctly with my policy.I have changed the
spasswd.cprogram to relabel the/etc/passwdand/etc/shadowfiles after running/usr/bin/passwd, and I made afile_type_auto_trans()rule to have them default toshadow_t(which unfortunately gives a momentary situation where/etc/passwdwill be unreadable). It would also be unfortunate if there was a power outage at that moment...So I'm thinking of having a program run from a boot script to fix the type of
/etc/passwd.Also I've got vipw and adduser also working with
shadow_t...
Quoted 7 lines
Quoted 3 lines
This isn't ideal, but the code for the chsh/chfn/vipw/etc programs is really ugly and I'm afraid of causing more problems than I fix if I change them.
Can you clarify what you mean by the latter statements, i.e. have you created wrapper programs for vipw and adduser to relabel
/etc/passwdfromshadow_ttoetc_tafter completion, or have you patched these programs?
I have created wrapper programs for vipw and adduser that relabel /etc/passwd, that's why I think it's not ideal.
I have not modified the source, mainly because I needed to get something working properly for my Linux Kongress tutorial and I didn't have time.
Signature · 3 lines
I do not get viruses because I do not use MS software. If you use Outlook then please do not put my email address in your address-book so that WHEN you get a virus it won't use my address in the
Quoted 1 line
From field.
--
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.