Received: from jazzswing.ncsc.mil (jazzswing.ncsc.mil [144.51.68.65]) by tycho.ncsc.mil (8.9.3/8.9.3) with ESMTP id PAA02929 for ; Sun, 22 Sep 2002 15:53:07 -0400 (EDT) Received: from jazzswing.ncsc.mil (localhost [127.0.0.1]) by jazzswing.ncsc.mil with ESMTP id TAA24409 for ; Sun, 22 Sep 2002 19:51:40 GMT Received: from tsv.sws.net.au (tsv.sws.net.au [203.36.46.2]) by jazzswing.ncsc.mil with ESMTP id TAA24405 for ; Sun, 22 Sep 2002 19:51:38 GMT Received: from lyta.coker.com.au (localhost [127.0.0.1]) by tsv.sws.net.au (Postfix) with ESMTP id CA9A992467 for ; Mon, 23 Sep 2002 05:52:47 +1000 (EST) Received: from lyta (localhost [127.0.0.1]) by lyta.coker.com.au (Postfix) with ESMTP id 06CC11E26 for ; Sun, 22 Sep 2002 21:52:37 +0200 (CEST) Content-Type: text/plain; charset="us-ascii" From: Russell Coker Reply-To: Russell Coker To: selinux@tycho.nsa.gov Subject: sigchld for sshd_t Date: Sun, 22 Sep 2002 21:52:36 +0200 MIME-Version: 1.0 Message-Id: <200209222152.36344.russell@coker.com.au> Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov avc: denied { sigchld } for pid=30758 exe=/usr/sbin/sshd scontext=root:user_r:newrole_t tcontext=system_u:system_r:sshd_t tclass=process I ssh'd into a machine and ran "exec newrole -r sysadm_r" to do some administration work. Then when I finished that I typed "exit" to end my shell, and the ssh connection was not closed as newrole_t did not have permission to send sigchld to sshd_t (I had to use "~."). The same avc message can be generated by using newrole to change role/domain and then doing "exec gpg" or "exec netscape", however newrole is sleeping on wait() so it doesn't cause any operational issues. I thought of allowing programs to send sigchld to privrole, but that would also include run_init_t and xdm_t. I think that perhaps we need a new attribute for such things, maybe "login_parent", and then have: allow domain_name login_parent:process sigchld; In the appropriate places for $1_gpg_t, $1_netscape_t, newrole_t, etc. Then the login attribute will be posessed by login_t, sshd_t, newrole_t, and crond_t. Hmm, how dangerous is sending sigchld to crond_t or other similar programs anyway? Forcing netscape to do whatever I want is trivial, so this would allow me as user_t to send sigchld to any of those programs. Russell Coker -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.