All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
To: Stephen Smalley <sds@epoch.ncsc.mil>
Cc: Daniel J Walsh <dwalsh@redhat.com>,
	Jim Carter <jwcart2@epoch.ncsc.mil>,
	Russell Coker <russell@coker.com.au>,
	SE Linux <selinux@tycho.nsa.gov>
Subject: Re: ssh policy
Date: Fri, 10 Sep 2004 19:09:00 +0100	[thread overview]
Message-ID: <20040910180900.GQ14060@lkcl.net> (raw)
In-Reply-To: <1094828891.28310.52.camel@moss-spartans.epoch.ncsc.mil>

On Fri, Sep 10, 2004 at 11:08:11AM -0400, Stephen Smalley wrote:
> On Fri, 2004-09-10 at 10:50, Daniel J Walsh wrote:
> > Latest policy.  More stuff for dbus.  Added media file.   Changes for 
> > udev on tmpfs.
> 
> Conflicts with our latest patches.
> > 
> > ______________________________________________________________________
> > -allow ifconfig_t self:netlink_route_socket { bind create getattr nlmsg_read nlmsg_write read write };
> > +allow ifconfig_t self:netlink_route_socket { bind create getattr nlmsg_read nlmsg_write read write setopt };
> 
> I just replaced this with rw_netlink_socket_perms in our tree.
> 
> > -r_dir_file(updfstab_t, { selinux_config_t file_context_t default_context_t } )
> >  can_getsecurity(updfstab_t)
> > +dontaudit updfstab_t selinux_config_t:dir search;
> 
> I don't think that this is correct; updfstab appears to be looking up a
> context via matchpathcon for preserving the context on /etc/fstab, so it
> needs access to the file contexts file as in our policy.
> 
> > diff --exclude-from=exclude -N -u -r nsapolicy/file_contexts/program/xserver.fc policy-1.17.13/file_contexts/program/xserver.fc
> > --- nsapolicy/file_contexts/program/xserver.fc	2004-09-09 15:36:11.000000000 -0400
> > +++ policy-1.17.13/file_contexts/program/xserver.fc	2004-09-10 10:29:32.761599897 -0400
> > @@ -11,7 +11,7 @@
> >  /var/log/XFree86.*	--	system_u:object_r:xserver_log_t
> >  /var/log/Xorg.*		--	system_u:object_r:xserver_log_t
> >  /etc/init\.d/xfree86-common --	system_u:object_r:xserver_exec_t
> > -/tmp/\.X11-unix		-d	system_u:object_r:xdm_xserver_tmp_t
> > +/tmp/\.X11-unix		-d	system_u:object_r:xdm_tmp_t
> >  /tmp/\.X11-unix/.*	-s	<<none>>
> >  /tmp/\.ICE-unix		-d	system_u:object_r:xdm_xserver_tmp_t
> >  /tmp/\.ICE-unix/.*	-s	<<none>>
> 
> I know that this was motivated by the relabel cycling reported by Tom
> London, but it raises an obvious question - who is creating this
> directory?  Is it truly [xdk]dm?  If not, why it is being created in
> xdm_tmp_t rather than xdm_xserver_t?
> 

 i raised a bug on debian about this and the reason is that a number
 of legacy X programs rely on the location /tmp.

 actually i raised the bug about /etc/init.d/xfs so in fact
 this time /etc/init.d/xfree86-common needs
 if [ -x /sbin/restorecon ]; then /sbin/restorecon $ICE_DIR; fi
 and
 if [ -x /sbin/restorecon ]; then /sbin/restorecon $SOCKET_DIR; fi

 debian intend to fix the location of all of these post-sarge.

 at the moment it'd break too many legacy apps that used to be
 happy with /tmp.

 l.


--
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.

  parent reply	other threads:[~2004-09-10 17:57 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-08 18:28 ssh policy Russell Coker
2004-09-09 20:33 ` James Carter
2004-09-10 14:50   ` Daniel J Walsh
2004-09-10 15:08     ` Stephen Smalley
2004-09-10 15:24       ` Daniel J Walsh
2004-09-10 18:09       ` Luke Kenneth Casson Leighton [this message]
2004-09-11  9:13       ` Russell Coker
2004-09-13 12:47         ` Daniel J Walsh
2004-09-13 14:31         ` Daniel J Walsh
2004-09-13 20:18     ` James Carter
  -- strict thread matches above, loose matches on Subject: below --
2003-12-05  1:18 Nick
2003-12-05  2:07 ` ssh policy Russell Coker
     [not found]   ` <1070651210.27071.290.camel@hawaii.efficax.net>
2003-12-06  6:22     ` Russell Coker
2002-10-23 18:52 Russell Coker
2002-10-23 19:20 ` Stephen Smalley
2002-07-31 16:53 Russell Coker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040910180900.GQ14060@lkcl.net \
    --to=lkcl@lkcl.net \
    --cc=dwalsh@redhat.com \
    --cc=jwcart2@epoch.ncsc.mil \
    --cc=russell@coker.com.au \
    --cc=sds@epoch.ncsc.mil \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.