Commit Graph

37 Commits

Author SHA1 Message Date
Xin Ouyang
0dfeb9260d coreutils: uprev to 8.21 to fit oe-core
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-04-01 11:04:19 +08:00
Xin Ouyang
439f31c81e initscript: append restorecon lines instead of a final script
Current meta-selinux provides a populate-volatile.sh for adding
restorecon lines to the oe-core script.

If other meta layers would add a new populate-volatile.sh, it will
override the oe-core and meta-selinux ones and cause selinux issues.
So append restorecon lines to the original script instead of a
final script.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-03-05 09:52:08 +08:00
Xin Ouyang
e558dba5db packages: uprev bbappends to fit oe-core
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-02-22 18:13:27 +08:00
Xin Ouyang
0f2d1bcd4d coreutils: inherit with-selinux
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-01-31 13:42:35 +08:00
Xin Ouyang
f11604ac92 glib-2.0: config option should be --enable-selinux
--with-selinux is consided as unrecognized option while
do_configure, so change it to --enable-selinux,

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-01-18 15:01:04 +08:00
Xin Ouyang
c6c13c4aa2 tinylogin: add passwd alternative
In meta-selinux layer, tinylogin links are installed as script
wrappers instead of symlinks to get their security labels.
So, they should use alternatives if there are same commands provided
by other packages.

passwd -> passwd.tinylogin
       -> passwd.shadow

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-01-07 18:07:00 +08:00
Xin Ouyang
44f43e02bd packages: inherit selinux
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-01-05 14:00:29 +08:00
Xin Ouyang
d95d951a0e packages: inherit with-selinux
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-01-05 14:00:24 +08:00
Xin Ouyang
5abfe148ef packages: inherit enable-selinux
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-01-05 13:42:22 +08:00
Xin Ouyang
1372e7b7d2 util-linux: fix build failures for version 2.22.1.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-12-12 18:18:00 +08:00
Xin Ouyang
1c285bd0e7 libcgroup: remove the SRC_URI to fit oe-core
oe-core has fixed this by commit
    9a97367038a1e2431bf94211dabbc5aedbbee3bb

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-12-11 14:49:47 +08:00
Xin Ouyang
cd321edab3 glib-2.0,util-linux: uprev to oe-core version.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-12-05 11:17:46 +08:00
Xin Ouyang
8fc66056eb libcgroup: fix hard coded /lib to ${base_libdir}
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-12-05 10:45:05 +08:00
Xin Ouyang
71bed4c424 glib-2.0/psmisc: uprev to oe-core version
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-11-27 10:20:14 +08:00
Xin Ouyang
731966a462 udev: uprev to oe-core version 182.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-11-07 14:22:00 +08:00
Xin Ouyang
130f05b4e5 libcgroup: add bbappend and remove bb files
libcgroup is placed in oe-core now.
http://git.openembedded.org/openembedded-core/commit/?id=6ef8e6f2f9b0583fa0881e0dfc52462405b21ede

So remove bb files from meta-selinux and add bbappend.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-11-07 10:12:25 +08:00
Xin Ouyang
c8b060cb5d tinylogin: create script wrappers for selinux
Symlink can not execute will security contexts, so create script
wrappers for tinylogin commands instead of symlinks.

Also add tinylogin's login command as a alternative.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-10-18 11:07:44 +08:00
Xin Ouyang
6845442c3c udev: initscript restore security context for /dev
Poky/oe-core has set CONFIG_DEVTMPFS_MOUNT=y for kernel to mount
/dev with devtmpfs itself.

With MLS policy, kernel is running in s15:c0.c1023 level, so /dev
will be relabeled to this high level too.
This will cause processes running with low levels can not visit
/dev directory.

So, we just run restorecon /dev to fix this.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-10-18 11:07:44 +08:00
Xin Ouyang
0674df16fb initscripts: restorecon after populate-volatile
populate-volatile.sh creates new directories in /var/volatile/ while
booting, so we should restore the security contexts in it.
Also touch /var/log/lastlog to set correct security contexts.

populate-volatile.sh is imported for oe-core, and add these two
lines at the end.

touch /var/log/lastlog
test ! -x /sbin/restorecon || /sbin/restorecon -R /var/volatile/

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-10-18 11:07:44 +08:00
Xin Ouyang
3467300a26 glib-2.0: new version 2.32.4
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-07-19 15:04:54 +08:00
Xin Ouyang
d874dfce04 util-linux: uprev to 2.21.2
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-06-28 16:32:42 +08:00
Xiaofeng Yan
da160ef910 util-linux: Support selinux
Add the selinux support for util-linux.

Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-06-25 10:18:34 +08:00
Xiaofeng Yan
df354a213e dbus:Support selinux
Add the selinux support for dbus.

Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-06-25 10:18:03 +08:00
Xin Ouyang
5d0ff4989e udev: Build with selinux support.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-06-20 17:47:23 +08:00
Xin Ouyang
014192520b glib-2.0: Build with selinux support.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-06-15 18:00:30 +08:00
Xin Ouyang
72d7f55772 libcgroup: native package does not need pam.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-06-07 15:32:12 +08:00
Xin Ouyang
84d8ba1055 libcgroup: Add libcgroup for initscripts. 2012-05-18 18:31:22 -05:00
Xin Ouyang
1675fcf46c libcgroup: Update to new version 0.38 2012-05-18 18:31:22 -05:00
Xin Ouyang
7be7c2aca1 libcgroup: Fix the summary and description. 2012-05-18 18:31:22 -05:00
Mark Hatle
0432c5e7a6 libcgroup: Add libcgroup
add libcgroup recipe from meta-openembedded/meta-oe

as of commit: 902ed05dfca3ce2b98fc9e3a4cafdee956130df7

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2012-05-18 18:31:22 -05:00
Mark Hatle
48a55735f2 Revert libcgroup additions and patches
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2012-05-18 18:31:21 -05:00
Xin Ouyang
a435febae2 sysvinit: Fix environment variables override bug.
As we have specified "-e MAKEFLAGS= " to make, environment
variables will override variables in the top makefile but not
subdir makefiles.

Current bb uses sysvinit-xxx/src as ${B}, the environment variable
CPPFLAGS would override all "CPPFLAGS" lines in
sysvinit-xxx/src/Makefile. Such as "CPPFLAGS+= -DACCTON_OFF",
"CPPFLAGS += $(SELINUX_DEF)" and "CPPFLAGS += -DINIT_MAIN".

This causes some sections(#ifdef INIT_MAIN/WITH_SELINUX ... #endif)
will never be used.
2012-04-27 16:04:13 +08:00
Xin Ouyang
c74818cb9a sysvinit: bbappend to build with libselinux.
Also a patch from sysvinit upstream to fix selinux init.
2012-04-17 17:18:47 +08:00
Xin Ouyang
208e905d1c libcgroup: Add libcgroup for initscripts. 2012-02-29 17:59:40 +08:00
Xin Ouyang
1b92df42bf libcgroup: Add new version 0.38 2012-02-28 15:51:46 +08:00
Xin Ouyang
32fd61ab6d libcgroup: Fix the summary and description. 2012-02-28 15:50:42 +08:00
Xin Ouyang
a032b2ec11 libcgroup: needed by policycoreutils. 2012-02-13 16:08:45 +08:00