Skip top menus
National Security Agency and Central Security Service with agency logos.NSA/CSS Memorial Wall
Home    About NSA    Research    Business    Careers    Public Info    History
Introduction to Research    Security-Enhanced Linux    Information Assurance Research    Technology Transfer    Publications    Related Links

>>SELinux Mailing List: by thread

Search
What's new?
Contents
Overview
What's New
Frequently Asked Questions
Background
Documentation
License
Download
Participating
Mail List
Archive Summary
Archive by Thread
Archive by Author
Archive by Date
Archive by Subject
Remaining Work
Contributors
Related Work
Press Releases
  • Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]
From: Carlos Cardenas <ccardena_at_cs.utsa.edu>
subject: UltraSparc
Date: Tue, 18 Sep 2001 17:26:04 -0500 (CDT)
  • This message: [ Message body ]
  • Next message: Stephen Smalley: "Re: UltraSparc"
  • Previous message: Stephen Smalley: "[PATCH] Bug fix for file alloc_security hook call"
  • Next in thread: Stephen Smalley: "Re: UltraSparc"
  • Reply: Stephen Smalley: "Re: UltraSparc"


Has there been any successfull attempt for SELinux on an UltraSparc? After doing a make menuconfig on an Ultra 5, I saw that there was not a Security option, then realized that SELinux wasn't really made for it, but rather for i386(I saw this by looking in the lsm/security/selinux_plug/arch that there is a sym. link machine pointing to sparc64....there is no sparc64 in that directory).

--
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.
From: Stephen Smalley <sds_at_tislabs.com>
subject: Re: UltraSparc
Date: Wed, 19 Sep 2001 09:18:27 -0400 (EDT)
  • This message: [ Message body ]
  • Next message: Conan Callen: "selinux & gnome"
  • Previous message: Carlos Cardenas: "UltraSparc"
  • In reply to: Carlos Cardenas: "UltraSparc"

On Tue, 18 Sep 2001, Carlos Cardenas wrote:

> Has there been any successfull attempt for SELinux on an UltraSparc?

Not as far as I know, but it shouldn't be difficult to port the architecture-specific code of LSM and SELinux to other architectures. Someone ported the architecture-specific code of the original SELinux prototype to the PPC a while back without any real difficulty, and it shouldn't be any harder using the new LSM-based SELinux prototype.

There are a small number of architecture-specific changes in the LSM kernel patch that have only been made for the x86 and ia64 architectures so far. Specifically, LSM adds a general security system call to support new system calls by security modules (see the changes to lsm/arch/i386/kernel/entry.S and lsm/include/asm-i386/unistd.h) and it inserts security hooks into the code of a few system calls in the architecture-specific directories (see the changes to lsm/arch/i386/kernel/ioport.c and lsm/arch/i386/kernel/ptrace.c). And you'll need to add a 'source security/Config.in' to the arch/*/config.in file for your desired architecture. If you port these changes to another architecture, please feed them back to the LSM project - see their web site at lsm.immunix.org.

The SELinux kernel module also contains a little architecture-specific code in selinux/module/selinux_plug/include/asm-i386/flask/unistd.h and selinux/module/selinux_plug/arch/i386/syscalls.c. This code is to implement one additional system call, execve_secure, that I wasn't able to successfully implement using the general security system call. This is an extended version of execve that also passes the requested security identifier to use for the transformed process, invoked by some of our modified daemons and utilities. If you port the architecture-specific version of execve_secure to another architecture, then please feed it back to us.

Another option would be to try using the architecture-independent version of execve_secure (in selinux/module/selinux_plug/syscalls.c) by leaving USE_MD_EXECVE (use machine-dependent execve_secure) undefined in the include/asm-XXX/flask/unistd.file for your architecture. This was an attempt to use the general security system call to implement execve_secure (thus avoiding any architecture-specific code in the SELinux kernel module), but it returns the wrong error code when used to probe the path for some unknown reason, and I haven't tracked down the problem yet. See the comment before the syscalls.c:sys_execve_secure.

As a side note, please be aware that a number of important bug fixes and improvements have been made to both LSM and SELinux since the August 23rd release of SELinux, so I would expect that we are likely to make a new release soon. I would have pushed for a new release already, but we've been waiting for 2.4.10.

--
Stephen D. Smalley, NAI Labs
ssmalley@nai.com





--
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.
  • Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

This archive was generated by hypermail 2.2.0 on Wed 11 Jun 2008 - 08:10:54 EDT

Information Assurance | Signals & Intelligence        Links | Accessibility | Privacy & Security