Received: from mummy.ncsc.mil (mummy.ncsc.mil [144.51.88.129]) by tycho.ncsc.mil (8.12.8/8.12.8) with ESMTP id i5R8DQrT007202 for ; Sun, 27 Jun 2004 04:13:26 -0400 (EDT) Received: from smtp809.mail.ukl.yahoo.com (jazzhorn.ncsc.mil [144.51.5.9]) by mummy.ncsc.mil (8.12.10/8.12.10) with SMTP id i5R8DD5h004185 for ; Sun, 27 Jun 2004 08:13:13 GMT Received: from unknown (HELO hyd) (selinux@tycho.nsa.gov@81.155.76.36 with poptime) by smtp809.mail.ukl.yahoo.com with SMTP; 27 Jun 2004 08:12:10 -0000 Received: from highfield ([192.168.0.223] helo=lkcl.net) by hyd with esmtp (Exim 4.34) id 1BeUBY-00049i-W6 for selinux@tycho.nsa.gov; Sun, 27 Jun 2004 07:34:45 +0000 Received: from lkcl by lkcl.net with local (Exim 4.24) id 1BeUie-00036y-2t for selinux@tycho.nsa.gov; Sun, 27 Jun 2004 08:08:56 +0000 Date: Sun, 27 Jun 2004 08:08:56 +0000 From: Luke Kenneth Casson Leighton To: SE-Linux Subject: is there a way to express permission to access any tcp or udp socket? Message-ID: <20040627080856.GB11890@lkcl.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov hi, i'm in the process of getting this fireflier policy right, and it (like lsof) reads /proc/NNNN/fd/N to obtain the name of the program that's actually using a tcp or udp socket - and then allowing the user the option of banning or allowing that program to send or receive tcp or udp traffic (on demand. it's really cool). of course, fireflier needs to do a stat of /proc/NNNN/fd/N in order to find out its inode - hence the getattr. i've patched fireflierd to stop it doing a stat of EVVEERRYY single damn file descriptor (!!!) but there are still i don't want to have to add permission for postfix_t, sendmail_t, exim_t, nntp_t, sshd_t, lpd_t, every_single_server_i_can_think_of_and_all_those_that_i_can't_t: allow fireflier_t rpcd_t:tcp_socket { getattr }; allow fireflier_t rpcd_t:udp_socket { getattr }; allow fireflier_t sshd_t:tcp_socket { getattr }; allow fireflier_t user_t:udp_socket { getattr }; allow fireflier_t user_t:tcp_socket { getattr }; does anyone know of a way to do something like, oh, this: allow fireflier_t absolutely_everything_t:tcp_socket { getattr }; allow fireflier_t absolutely_everything_t:udp_socket { getattr }; what should i put in the absolutely_everything_t? much appreciated, l. -- -- 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. -- lkcl.net
lkcl@lkcl.net
-- 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.