Received: from termpaper.tycho.ncsc.mil (termpaper [144.51.3.7]) by tycho.ncsc.mil (8.9.3/8.9.3) with SMTP id RAA24534 for ; Tue, 22 May 2001 17:00:01 -0400 (EDT) Date: Tue, 22 May 2001 17:29:40 -0400 (EDT) From: edm@tycho.ncsc.mil Subject: RE: Re[2]: SELinux as a desktop / workstation? To: selinux@tycho.nsa.gov Message-Id: <1010522172940.216AAH0G.edm@termpaper> In-Reply-To: <200105211604.LAA05113@tomcat.admin.navo.hpc.mil> Mime-Version: 1.0 (Generated by Eloquent) Content-Type: text/plain; charset=US-ASCII Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov > > SELinux would certainly help (in that it would quarantine any infected region), but that is not its primary role. >> BTW, since this is a SELinux mailing list, I'll throw in the obligatory plea. Is SELinux holding off for 2.4.5, or will we see a 2.4.4 version? > >It depends on where the virus can attack. If the kernel had no buffer overflow >or programming oversights, it will help. The primary attack point are the >service daemons, which run with some elevated privileges. Selinx helps in the defense against viruses in the following manner (1) Propagation: First, let's assume that a program containing a virus has been introduced into a selinux based system. The program is executed and the virus decides it wants to propagate. In a properly setup selinux system, the propagation fails for the following reasons: (a) A propagation involves a write to an executable file. The propagation should fail for the following reasons: (i) selinux would stop the propagation because programs (executables) should (and are normally) intstalled with only read/execute permissions. This should also be normal unix behavior. (ii) In a properly setup selinux system, program executables should have their own types (which should be different than user/system types). Any attempt at propagation would cause a policy violation because user/system domains should not have the ability to write to executables. (Executables should be loaded in a admin domain, even then only the particular program type being loaded should the written to.) Type enforcement under selinux can be viewed as placing programs into a box, with the box being the accesses allowed for that domain type by the selinux policy. How restrictive that box is depends upon the the system implementer/administrator. Note that I've said nothing about the code in that box, I assume that it is malicious. It is the codes behavior that the policy is restricting. (2) Attack. Selinux -->is<-- very effective against buffer overflow attacks, see my message under that title for further explanation. Other attacks against the operating system, such as manipulating a system call to attain a certain result, I would say that it depends. However, the attacker must figure out a way to neutralize the policy code because simply attaining root is not good enough. In short, selinux increases the work needed to break in. (3) Privileges of service daemons "Elevated privileges" in selinux does not mean the same as in a conventual linux/unix system. each of the service daemons executes in its own domain. Any exploitation of a sucessful attack against these daemons will, at best, be able to access what that domain is restricted by the policy to do (as noted above). gene -- You have received this message because you are subscribed to the selinux 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.