Openembedded Core Discussions
 help / color / mirror / Atom feed
* SELinux support
@ 2014-07-28 17:01 Enrico Scholz
  2014-07-28 17:39 ` PSEUDO - " Mark Hatle
  0 siblings, 1 reply; 3+ messages in thread
From: Enrico Scholz @ 2014-07-28 17:01 UTC (permalink / raw)
  To: openembedded-core

[ https://bugzilla.yoctoproject.org/show_bug.cgi?id=6580 ]

Hi,

after upgrade to recent pseudo 1.6+, oe-core stops to build as a
confined SELinux now.  This happens because SELinux provides more
than the xattr file api and 'pseudo' does not intercept e.g. writing
into '/proc/self/attr/fscreate'.

IMO, turning off every SELinux related operation in do_install() (which
is wrapped by 'pseudo') is a clean way to fix and improve building.  If
OE supports SELinux for targets sometime, the file relabeling should be
done in do_rootfs() by using a chroot aware 'restorecon' (e.g. which
reads the file context policy from the chroot but not from system wide
/etc/selinux).

Unfortunately, I do not know a way to make applications think they are
running without SELinux.  But patching 'pseudo' to return faked values
for 'is_selinux_enabled()' seems to be a good solution.

Bug #6580 mentioned at the beginning contains some discussion and a
patch.  What do other people think about it?



Enrico


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

end of thread, other threads:[~2014-07-30 16:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-28 17:01 SELinux support Enrico Scholz
2014-07-28 17:39 ` PSEUDO - " Mark Hatle
2014-07-30 16:36   ` Peter Seebach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox