Skip to contentSkip to conversation

SELinux changes for 2.6.23 (updated)

GIT James Morris 2 participants 3 messages Jul 12, 2007 – Jul 13, 2007

lore
Share & tools
lore
#0 lore raw

This is an updated set of 2.6.23 SELinux changes, rebased & tested against current git. The vmsplice patch has been dropped from this and will be resubmitted via Jens. Also added an ack from Chris Wright for the mmap null dereference hooks (which I'd forgotten to add to my tree some time ago).

Please pull.

The following changes since commit 4eb6bf6bfb580afaf1e1a1d30cba17a078530cf4:
Alan Cox (1):
lots-of-architectures: enable arbitary speed tty support

are found in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/selinux-2.6.git#for-linus

Adrian Bunk (1):
security: unexport mmap_min_addr

Christopher J. PeBenito (4):
selinux: add support for querying object classes and permissions from the running policy
selinux: rename sel_remove_bools() for more general usage.
selinux: change sel_make_dir() to specify inode counter.
selinux: add selinuxfs structure for object class discovery

Eric Paris (2):
selinux: introduce schedule points in policydb_destroy()
security: Protection for exploiting null dereference using mmap

Paul Moore (1):
SELinux: use SECINITSID_NETMSG instead of SECINITSID_UNLABELED for NetLabel

Stephen Smalley (1):
SELinux: allow preemption between transition permission checks

Tobias Oed (1):

      SELinux: Use %lu for inode->i_no when printing avc
 Documentation/sysctl/vm.txt                  |   15 ++
 include/linux/security.h                     |   17 ++-
 kernel/sysctl.c                              |   10 +
 mm/mmap.c                                    |    4 +-
 mm/mremap.c                                  |   13 +-
 mm/nommu.c                                   |    2 +-
 security/dummy.c                             |    6 +-
 security/security.c                          |    1 +
 security/selinux/avc.c                       |   12 +-
 security/selinux/hooks.c                     |   42 +++--
 security/selinux/include/av_perm_to_string.h |    1 +
 security/selinux/include/av_permissions.h    |    1 +
 security/selinux/include/avc.h               |    6 +-
 security/selinux/include/class_to_string.h   |    1 +
 security/selinux/include/flask.h             |    1 +
 security/selinux/include/security.h          |    4 +
 security/selinux/netlabel.c                  |   34 ++--
 security/selinux/selinuxfs.c                 |  269 +++++++++++++++++++++++++-
 security/selinux/ss/policydb.c               |    7 +
 security/selinux/ss/services.c               |  144 ++++++++++++--
 20 files changed, 504 insertions(+), 86 deletions(-)
#1 lore raw

Hi,

Quoted 9 lines · James Morris

This is an updated set of 2.6.23 SELinux changes, rebased & tested against current git. The vmsplice patch has been dropped from this and will be resubmitted via Jens. Also added an ack from Chris Wright for the mmap null dereference hooks (which I'd forgotten to add to my tree some time ago).

Please pull.

My system is too secure, I can not login :)

[   48.388454] audit(1184282973.821:4): avc:  denied  { recvfrom } for
pid=1168 comm="rhgb" saddr=127.0.0.1 src=40501 daddr=127.0.0.1
dest=6009 netif=lo scontext=system_u:system_r:xdm_xserver_t:s0
tcontext=system_u:object_r:unlabeled_t:s0 tclass=tcp_socket
[   48.572508] PM: Adding info for No Bus:vcs8
[   48.576842] PM: Adding info for No Bus:vcsa8
[   51.403651] audit(1184282976.821:5): avc:  denied  { recvfrom } for
saddr=127.0.0.1 src=40501 daddr=127.0.0.1 dest=6009 netif=lo
scontext=system_u:system_r:xdm_xserver_t:s0
tcontext=system_u:object_r:unlabeled_t:s0 tclass=tcp_socket
[   57.389935] audit(1184282982.820:6): avc:  denied  { recvfrom } for
saddr=127.0.0.1 src=40501 daddr=127.0.0.1 dest=6009 netif=lo
scontext=system_u:system_r:xdm_xserver_t:s0
tcontext=system_u:object_r:unlabeled_t:s0 tclass=tcp_socket
[   69.362541] audit(1184282994.818:7): avc:  denied  { recvfrom } for
saddr=127.0.0.1 src=40501 daddr=127.0.0.1 dest=6009 netif=lo
scontext=system_u:system_r:xdm_xserver_t:s0
tcontext=system_u:object_r:unlabeled_t:s0 tclass=tcp_socket
[   93.307790] audit(1184283018.814:8): avc:  denied  { recvfrom } for

saddr=127.0.0.1 src=40501 daddr=127.0.0.1 dest=6009 netif=lo scontext=system_u:system_r:xdm_xserver_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=tcp_socket

http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.22-g4eb6bf6b/console.log
http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.22-g4eb6bf6b/git-config2

Regards,
Michal

Signature · 2 lines
LOG
http://www.stardust.webpages.pl/log/
#2 lore raw
Quoted 2 lines · Michal Piotrowski

My system is too secure, I can not login :)

Do you have CONFIG_NETLABEL=y ?

If so, please try disabling it.

- James

Signature · 2 lines
James Morris
<[email protected]>