All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-selinux] all files unlabeled_t when using squashfs
@ 2014-11-04  0:48 Josh_Pennell
  2014-11-05 16:09 ` Joe MacDonald
  0 siblings, 1 reply; 2+ messages in thread
From: Josh_Pennell @ 2014-11-04  0:48 UTC (permalink / raw)
  To: yocto

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

Hello,

I'm working on a project using the meta-selinux reference policy on an embedded system.  The device uses a squashfs file system that is labeled during build time.  During the build, policy file labels are applied using Pseudo and setfiles with an alternate root path specified.  Also if I modify the build to use sudo setfiles I can confirm the file tags are correct.

Currently this is being done with Yocto 1.3 for prototyping on some older hardware but moving forward Yocto 1.7 will be used.

Using a Fedora system it is possible to mount the squashfs file and confirm the file labels are correct.  When the target system is flashed the file labels for the squashfs files are incorrect, but ram disk files are correct.  Using ls -laZ, all squashfs files are system_u:object_r:unlabeled_t

The kernel .config values for squsahfs and selinux here here

CONFIG_SQUASHFS=y
CONFIG_SQUASHFS_XATTR=y
CONFIG_SQUASHFS_ZLIB=y
CONFIG_SQUASHFS_LZO=y
CONFIG_SQUASHFS_XZ=y
# CONFIG_SQUASHFS_4K_DEVBLK_SIZE is not set
CONFIG_SQUASHFS_EMBEDDED=y
CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=10

CONFIG_SECURITY_SELINUX=y
CONFIG_SECURITY_SELINUX_BOOTPARAM=y
CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=1
CONFIG_SECURITY_SELINUX_DISABLE=y
CONFIG_SECURITY_SELINUX_DEVELOP=y
CONFIG_SECURITY_SELINUX_AVC_STATS=y
CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
CONFIG_SECURITY_SELINUX_POLICYDB_VERSION_MAX=n
# CONFIG_SECURITY_SELINUX_POLICYDB_VERSION_MAX is not set

Has anyone else run into this problem?  Any suggestions on what may be wrong?

Regards,
josh


[-- Attachment #2: Type: text/html, Size: 6317 bytes --]

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

end of thread, other threads:[~2014-11-05 16:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-04  0:48 [meta-selinux] all files unlabeled_t when using squashfs Josh_Pennell
2014-11-05 16:09 ` Joe MacDonald

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.