sshd, devpts, unix_chkpwd
Hi
I try to make debian to work with last SELinux packages (1.10) with patch for 2.6.5 kernel.
I still have too much messages like this:
Apr 19 01:20:36 fuxo kernel: avc: denied { read write } for pid=312
exe=/sbin/unix_chkpwd path=/dev/pts/0 dev= ino=2
scontext=root:staff_r:system_chkpwd_t
tcontext=system_u:object_r:sshd_devpts_t tclass=chr_fileIt is from sshd daemon....
#cat /etc/pam.d/ssh
auth required pam_nologin.so auth required pam_env.so # [1] @include common-auth @include common-account @include common-session session optional pam_motd.so # [1] session optional pam_mail.so standard noenv # [1] session required pam_limits.so
@include common-password
session required pam_selinux.so
[ssh version: 3.8p1-3 (debian sid)]
How can i setUp correct access of unix_chkpwd to devpts ?
Is it possible, that my debian hangs after too much noise of syslogd messages ? (my last message is ....* --MARK-- )
How can i get know the true reason of hang my machine?
Thank's a lot
mizu
Signature · 6 lines
mizu =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= [-> E-mail:michal_AT_zimen_DOT_sk [-> ICQ:97165392 [-> WWW: http://michal.zimen.sk =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Quoted 10 lines · mizu
I try to make debian to work with last SELinux packages (1.10) with patch for 2.6.5 kernel.
I still have too much messages like this:
Apr 19 01:20:36 fuxo kernel: avc: denied { read write } for pid=312 exe=/sbin/unix_chkpwd path=/dev/pts/0 dev= ino=2 scontext=root:staff_r:system_chkpwd_t tcontext=system_u:object_r:sshd_devpts_t tclass=chr_file
That is a bug in the pam package for Debian. Fixing it is on my to-do list, in the mean time putting in a dontaudit rule to stop that will be OK.
I don't know why your machine is hanging.
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.
Hello,
How about some type of wrapper that would force passwd (and other programs) to run in a specific domain instead of doing mods to the programs itself?
As for ssh 3.8 under debian I had to add the following line for user logins to occur correctly.
#ssh 3.8 stuff
allow staff_t sshd_devpts_t:chr_file { read write ioctl };
Ed
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Russell Coker
Sent: Saturday, April 24, 2004 11:59 PM
To: mizu
Cc: [email protected]
Subject: Re: sshd, devpts, unix_chkpwd
That is a bug in the pam package for Debian. Fixing it is on my to-do list,
in the mean time putting in a dontaudit rule to stop that will be OK.
---
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.662 / Virus Database: 425 - Release Date: 4/20/2004
--
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 2 lines · Ed Street
How about some type of wrapper that would force passwd (and other programs) to run in a specific domain instead of doing mods to the programs itself?
We had that, but decided that modifying PAM was better than having wrapper programs.
Quoted 5 lines
As for ssh 3.8 under debian I had to add the following line for user logins to occur correctly.
#ssh 3.8 stuff
allowstaff_tsshd_devpts_t:chr_file { read write ioctl };
This is due to a bug, the pty is not getting correctly relabeled.
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.