Troubles with etc/passwd being relabeled to shadow_t upon useradd/usermod
Hello,
i'm using SELinux from Russels Debian packages. Whenever i (or an dpkg postinst script) modifies the etc/passwd, or etc/group files they are transferred to the
"root:object_r:shadow_t" type, thus being unable to be read
even by root.
What is causing this, and how can i prevent this? (doing a "make relabel" is the only way i found to solve this)
Greetings,
Erich Schubert
Signature · 10 lines
erich@(mucl.de|debian.org) -- GPG Key ID: 4B3A135C (o_
There was never a good war or a bad peace. - Benjamin Franklin //\
Für jedes Problem gibt es eine Lösung, V_/_
die einfach, klar und falsch ist.
--
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 7 lines · Erich Schubert
i'm using SELinux from Russels Debian packages. Whenever i (or an dpkg postinst script) modifies the etc/passwd, or etc/group files they are transferred to the
"root:object_r:shadow_t" type, thus being unable to be read
even by root.
What is causing this, and how can i prevent this? (doing a "make relabel" is the only way i found to solve this)
Yes, this is a known bug.
Signature · 9 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- 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.
eric, hi,
i got round the problem by installing the modified versions of passwd, which you can get from selinux.lemuria.org/walters, see http://selinux.lemuria.org/
now, i understand that there's a better solution, but i am a bit confused as to what it is.
also, because i installed the latest version of some package [cups i think it was, bizarrely enough] it depends upon the _very_ latest passwd something .0 .85 or so.
so what i had to do was to download the patches to the passwd package (available both off the www.nsa.gov web site and also off of the site referenced above, apply them to the latest source, run dpkg-buildpackage and then install those.
in order to make my system useable, i had to install the pam package there, and coreutils, and logrotate, and login, and cron, and passwd.
DO NOT install the libselinux1, checkpolicy, policycoreutils, selinux-policy packages off of selinux.lemuria.org/walters, they are for Woody, they are out-of-date, they are unlikely to be maintained (iirc) but i _would_ if i were you have a crack at installing everything else (cu, sh, prps, fu, pam, mount, psm, shu, txtu, bsdu, coreu).
SOME of these packages are not necessary: they have been superceded by using pam_selinux.so instead (so you _will_ at least need to install the pam packages off of .../walters).
it's all slightly pear-shaped and trial-and-error.
WARNING: OTHER PEOPLE MAY ADVISE YOU TO DO DIFFERENTLY in order to get a working debian se/linux system: i have the advantage of quite a bit of time and a 100% focus for approximately four weeks in order to understand the issues to a vague enough point to "Get Something Working (tm)".
by the way, if you have _any_ influence with the various debian maintainer about, _please_ make some waves because this situation is just getting stupid.
NOT ONE of the CRITICALLY REQUIRED patches to debian packages has yet made it into the ftp site. a temporary measure has been proposed whilst sarge is in freeze to produce packages named se-XXXX which are optional until libselinux1 can be made "Required" status rather than optional.
the only person who has agreed to produce a [temporary] se-XXXX package is steve greene, who maintains cron.
the dpkg debian maintainer is alternating between responses varying along the lines of "that's a stupid idea as already discussed before hundreds of times before and it is beneath me to refute it in detail" and not responding at all to quite simple and polite requests to engage in discussing alternatives.
l.
Quoted 22 lines · Erich Schubert
Hello,
i'm using SELinux from Russels Debian packages. Whenever i (or an dpkg postinst script) modifies the etc/passwd, or etc/group files they are transferred to the
"root:object_r:shadow_t" type, thus being unable to be read
even by root.
What is causing this, and how can i prevent this? (doing a "make relabel" is the only way i found to solve this)Greetings,
Erich SchubertSignature · 10 lines
erich@(mucl.de|debian.org) -- GPG Key ID: 4B3A135C (o_ There was never a good war or a bad peace. - Benjamin Franklin //\ F?r jedes Problem gibt es eine L?sung, V_/_ die einfach, klar und falsch ist. -- 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.
Signature · 13 lines
-- Information I post is with honesty, integrity, and the expectation that you will take full responsibility if acting on the information contained, and that, should you find it to be flawed or even mildly useful, you will act with both honesty and integrity in return - and tell me. -- <a href="http://lkcl.net"> lkcl.net </a> <br /> <a href="mailto:[email protected]"> [email protected] </a> <br /> -- 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.