All of lore.kernel.org
 help / color / mirror / Atom feed
* polyinstantiation, what should happen?
@ 2007-01-17 23:01 Xavier Toth
  2007-01-17 23:48 ` Linda Knippers
  0 siblings, 1 reply; 6+ messages in thread
From: Xavier Toth @ 2007-01-17 23:01 UTC (permalink / raw)
  To: selinux

[-- Attachment #1: Type: text/plain, Size: 614 bytes --]

I'm running the lspp.63 kernel along with the latest pam and newrole
off of Dan Walsh' people page.

I've configured polyinstantiation but it doesn't work the way I
thought it would so either I don't understand or I've got it
configured wrong. In namespace.conf I've specified that I want context
to be used for the polyinstantiated instance directories but I only
getting the user name. Shouldn't the directory name contain the entire
an context?

Also I'm running X so I followed the instructions on the pam_namespace
man page but wasn't sure whether /etc/pam.d/gdm needed unmnt_remnt as
su and newrole do?

Ted

[-- Attachment #2: namespace.conf --]
[-- Type: application/octet-stream, Size: 1475 bytes --]

# /etc/security/namespace.conf
#
# See /usr/share/doc/pam-*/txts/README.pam_namespace for more information.
#
# Uncommenting the following three lines will polyinstantiate
# /tmp, /var/tmp and user's home directories. /tmp and /var/tmp will
# be polyinstantiated based on the MLS level part of the security context as well as user
# name, Polyinstantion will not be performed for user root and adm for directories 
# /tmp and /var/tmp, whereas home directories will be polyinstantiated for all users. 
# The user name and context is appended to the instance prefix.
#
# Note that instance directories do not have to reside inside the
# polyinstantiated directory. In the examples below, instances of /tmp
# will be created in /tmp-inst directory, where as instances of /var/tmp
# and users home directories will reside within the directories that
# are being polyinstantiated.
#
# Instance parent directories must exist for the polyinstantiation
# mechanism to work. By default, they should be created with the mode
# of 000. pam_namespace module will enforce this mode unless it
# is explicitly called with an argument to ignore the mode of the
# instance parent. System administrators should use this argument with
# caution, as it will reduce security and isolation achieved by
# polyinstantiation.
#
/tmp     /tmp-inst/       	context      root,adm,tedx
/var/tmp /var/tmp/tmp-inst/   	context      root,adm,tedx
$HOME    $HOME/$USER.inst/      context	     root,adm,tedx

[-- Attachment #3: newrole --]
[-- Type: application/octet-stream, Size: 246 bytes --]

#%PAM-1.0
auth       include	system-auth
account    include	system-auth
password   include	system-auth
session    include	system-auth
session	   optional     pam_xauth.so
session    required	pam_namespace.so unmnt_remnt no_unmount_on_close debug

[-- Attachment #4: gdm --]
[-- Type: application/octet-stream, Size: 409 bytes --]

#%PAM-1.0
auth       required    pam_env.so
auth       include     system-auth
account    required    pam_nologin.so
account    include     system-auth
password   include     system-auth
session    optional    pam_keyinit.so force revoke
session    include     system-auth
session    required    pam_loginuid.so
session    optional    pam_console.so
session    required    pam_namespace.so unmnt_remnt debug


[-- Attachment #5: login --]
[-- Type: application/octet-stream, Size: 690 bytes --]

#%PAM-1.0
auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
auth       include      system-auth
account    required     pam_nologin.so
account    include      system-auth
password   include      system-auth
# pam_selinux.so close should be the first session rule
session    required     pam_selinux.so close
session    include      system-auth
session    required     pam_loginuid.so
session    optional     pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session    required     pam_selinux.so open
session    optional     pam_keyinit.so force revoke
session    required     pam_namespace.so debug

[-- Attachment #6: su --]
[-- Type: application/octet-stream, Size: 548 bytes --]

#%PAM-1.0
auth		sufficient	pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
#auth		sufficient	pam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.
#auth		required	pam_wheel.so use_uid
auth		include		system-auth
account		sufficient	pam_succeed_if.so uid = 0 use_uid quiet
account		include		system-auth
password	include		system-auth
session		include		system-auth
session		optional	pam_xauth.so
session    	required     	pam_namespace.so unmnt_remnt debug

[-- Attachment #7: sshd --]
[-- Type: application/octet-stream, Size: 344 bytes --]

#%PAM-1.0
auth       include      system-auth
account    required     pam_nologin.so
account    include      system-auth
password   include      system-auth
session    optional     pam_keyinit.so force revoke
session    include      system-auth
session    required     pam_loginuid.so
session    required     pam_namespace.so unmnt_remnt debug

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-01-22 21:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-17 23:01 polyinstantiation, what should happen? Xavier Toth
2007-01-17 23:48 ` Linda Knippers
2007-01-18 14:55   ` Stephen Smalley
2007-01-18 19:46   ` Xavier Toth
2007-01-19 19:12     ` Linda Knippers
2007-01-22 21:30       ` Ted X Toth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.