Commit Graph

245 Commits

Author SHA1 Message Date
Joe Slater
9d06d2ea81 policycoreutils: fix genhomedircon construction
CQID: 418197

Reference /usr/sbin instead of the directory into which
the script is installed on the host.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2013-08-01 20:31:11 -05:00
Anders Hedlund
d5b2d7d8e0 audit: Fixed swig host contamination issue
CQID: 428272

The audit build uses swig to generate a python wrapper.
Unfortunately, the swig info file references host include
directories.  Some of these were previously noticed and
eliminated, but the one fixed here was not.

Signed-off-by: Anders Hedlund <anders.hedlund@windriver.com>
Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2013-08-01 20:31:07 -05:00
Mark Hatle
00ca5402bb findutils: fix patch to match latest dylan version
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2013-08-01 20:25:45 -05:00
Mark Hatle
f0dd704fce packagegroup-core-selinux: Rename from task to packagegroup
Also fix ALLOW_EMPTY, oe-core does not allow ALLOW_EMPTY w/o a package
name.

Adjust references in core-image-selinux to the new packagegroup filename.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2013-08-02 00:21:23 +00:00
Xin Ouyang
9a15691663 selinux packages: uprev git recipes to lastest tag 20130423.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-06-18 12:42:42 +08:00
Xin Ouyang
98b5a105a5 Update maintainer list.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-06-14 17:33:47 +08:00
Xin Ouyang
5c1a93d641 policycoreutils: Revert "run_init: If open_init_pty ..."
This reverts commit d46e88abb6e1f7b0228c30c98ba4fb739e63cda3.

In d46e88ab, run_init will not use open_init_pty as Redhat did. Our
old refpolicy still does no work well with this, and make init scripts
fail to start so revert it.

This patch should be dropped while refpolicy is upreved to 2.20120725+.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-06-05 10:00:45 +08:00
Xin Ouyang
529c640481 policycoreutils: Revert "restorecon: only update type by default"
This reverts uprev commit 96cedba3e59aa474f0f040da5108a17bba45ce6c.

96cedb will cause wrong security contexts for /dev/ while using
MLS type of old refpolicy, so revert it.

This patch should be dropped while refpolicy is upreved to 2.20120725+.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-05-28 10:45:20 +08:00
Xin Ouyang
eebab9c3cd libselinux: Revert libpcre for old refpolicy compatible
This reverts upstream libpcre commits.

libselinux 2.1.12 uses libpcre to do file path matching instead of glibc
regex. Because there are some differences between glibc regex and pcre
functions, this will cause wrong security contexts for files while using
old refpolicy.

This patch should be dropped while refpolicy is upreved to 2.20120725+.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-05-28 10:45:14 +08:00
Xin Ouyang
af06a5a166 libpcre: uprev to 8.32 to fit oe-core
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-05-13 16:43:49 +08:00
Randy MacLeod
d2ce613684 libsemanage: drop flag: -Wno-unused-but-set-variable
The flag: -Wno-unused-but-set-variable isn't supported on older
versions of gcc such as gcc-4.1.2 which is the native compiler for
RHEL-5.9. Drop this warning flag for both the native and target builds.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-05-01 11:44:48 +08:00
Randy MacLeod
41a6955416 libselinux: drop flag: -Wno-unused-but-set-variable
The flag: -Wno-unused-but-set-variable isn't supported on older
versions of gcc such as gcc-4.1.2 which is the native compiler for
RHEL-5.9. I've droped this warning flag for both the native and target builds.

Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2013-04-30 16:49:02 -05:00
Xin Ouyang
98c210142d libpcre: move library to base_libdir to avoid QA issue
Fix these QA warnings.
WARNING: QA Issue: package_a: lib_a, installed in the base_prefix,
   requires a shared library under exec_prefix (/usr):
   libpcre.so.0 => /usr/lib64/libpcre.so.0

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-04-25 16:06:29 +08:00
Xin Ouyang
e6ed027e03 shadow: drop select_context for login pam_selinux
select_context param for pam_selinux module attempt to ask the user
for a custom security context role while login.

Admins and linux distros hardly use this param to the pam configs,
because this adds a new step in login process, and users could use
"newrole" command instead after login in.

Moreover, this is totally unnecessary for policy types without
multiple roles.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-04-25 16:06:20 +08:00
Xin Ouyang
dc917209fd selinux userspace: uprev to release 2.20120924
Upreved packages:
 - checkpolicy to 2.1.11
 - libselinux to 2.1.12
 - libsemanage to 2.1.9
 - libsepol to 2.1.8
 - policycoreutils to 2.1.13
 - sepolgen to 1.1.8

Misc changes:
 - libselinux has a new depend for libpcre
 - drop patches that new version merged
 - set PR to r0 for new version

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-04-24 18:22:07 +08:00
Xin Ouyang
93c595256f openssl: remove bbappend since oe-core merged
oe-core has used "-Wa,--noexecstack" in CFLAG not only for native
now, so the bbappend should be removed.

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/meta/recipes-connectivity/openssl/openssl.inc?id=4fb837687dd68363f25fbfc15207dd05d1369661

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-04-16 10:19:57 +08:00
Xin Ouyang
90cfe5774b shadow/openssh: use pam_selinux only if target_selinux enabled
We add pam conf files for login/sshd to use pam_selinux module. When
selinux is not in DISTRO_FEATURES, pam-plugin-selinux would not be
built, this will cause runtime errors to not allow users to login in
on the console or ssh.
Use @target_selinux() to enable these pam conf files conditionally.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-04-15 10:42:58 +08:00
Xin Ouyang
9468ed53d9 audit: use generated headers for cross compiling
Default audit Makefile will generate native executables in lib/ and
auparse/, which are named as gen_*_h and run on the hosts to create
*_tables.h/*tabs.h header files for the targets.

This is inappropriate for our cross compiling because they need
linux-libc-headers from the host.

Even worse, on some old hosts, build will fail because some .h files
in the old linux-libc-headers (<= 2.6.29) has incomplete DEFINE lists
for the audit system.

So add *tables.h/*tabs.h header files which are generated from
linux-libc-headers-3.4, and do not generate and run those native
executables.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-04-01 11:06:39 +08:00
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
c184646a07 findutils: Fix case where ${B} != ${S}
oe-core 9e64079063fc4748b48eee0e2592caf8ba9de10e has split ${B} of
findutils into a different path from ${S}, this would cause build
failures.

.../findutils/4.4.2-r6.5/temp/run.do_configure.25396:
line 87: ./import-gnulib.sh: No such file or directory

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-04-01 11:04:13 +08:00
Xin Ouyang
11fd52d5a8 mesa: rename mesa-dri to mesa to fit oe-core
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-04-01 11:04:07 +08:00
Xin Ouyang
650ebcaa04 cronie: uprev to fit oe-core version
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-03-21 11:21:57 +08:00
Jackie Huang
34b12f39d5 python-ipy: fix PN -> BPN in do_install for multilibs
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
2013-03-19 15:21:37 +08:00
Jackie Huang
5b8890f4c2 ustr: fix PN -> BPN in do_install for multilibs
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
2013-03-19 15:21:30 +08:00
Xin Ouyang
f238cc2cfe refpolicy: oe-core /var/log symlink policy for apache
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-03-19 11:07:59 +08:00
Xin Ouyang
f113342768 refpolicy*: fix file contexts for many oe-core recipes
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-03-19 11:07:53 +08:00
Xin Ouyang
587fdba43a libcap-ng: fix the QA issue for libcap-ng.so*
Some binaries in base_sbindir have libcap-ng.so* depends, so move
libcap-ng.so* to avoid QA warnings.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-03-15 15:23:57 +08:00
Wenzong Fan
b385a892a2 meta-selinux: Add LAYERVERSION and LAYERDEPENDS
Add LAYERVERSION and LAYERDEPENDS to layer.conf

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
2013-03-15 13:19:08 +08:00
Xin Ouyang
ecf2c41951 sudo: uprev to 1.8.6p7 to fit oe-core
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-03-09 17:54:19 +08:00
Xin Ouyang
600f2b3a8f kernel: add linux-3.8 bbappend
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-03-09 17:54:13 +08:00
Xin Ouyang
23d99ebc3f kernel: remove 3.0 bbappend to fit oe-core
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-03-09 17:54:03 +08:00
Xin Ouyang
e5b9f49048 refpolicy: two patches for nfs-kernel-server
We still miss some rules for nfsd to bind on nfs ports, so add a patch
to fix this. oe-core changed nfsd to use portmap, so also fix file
contexts for portmap.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-03-09 16:27:05 +08:00
Xin Ouyang
7ff7d24aad sudo: uprev to fit oe-core version
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-03-07 10:48:57 +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
11d62e4a07 bind: restore rndc.key security context
rndc.key would be labeled with wrong named_zone_t inherited from
/etc/bind while creating, so restorecon on it.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-03-02 14:26:34 +08:00
Xin Ouyang
e77a2aabb6 augeas: uprev to oe-core version
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-03-01 14:31:25 +08:00
Xin Ouyang
462d217039 swig: add native wrapper for SWIGLIB
Native swig will read datas from hard-coded SWIGLIB or the same
environment variable.

While using sstate, the hard-coded SWIGLIB will point to the project
that create original sstates. This would cause build issues, so add
a wrapper to set the environment variable SWIGLIB to a relative path
on current sysroot.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-02-27 15:56:37 +08:00
Xin Ouyang
0c2d3c680b bind: use volatiles to create /var subdirs.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-02-27 15:15:49 +08:00
Xin Ouyang
4f2f74b781 refpolicy: add selinux-config RDEPENDS
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-02-27 15:05:00 +08:00
Xin Ouyang
30dfd0cd94 refpolicy: fix file contexts for bind
Some files of bind are not installed to default pathes, fix the
security contexts for these files.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-02-27 14:47:37 +08:00
Xin Ouyang
10754edb75 refpolicy: add rules for /var/cache symlink
/var/cache is a symlink in poky, so we need allow rules for files to
read lnk_file while doing search/list/delete/rw.. in /var/cache/
directory.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-02-27 14:45:52 +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
eaf80edec1 policycoreutils: target build alway need libcgroup&libcap-ng
Target package policycoreutils-sandbox always needs libcgroup and
libcap-ng, so it should not be conditional.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-02-17 18:19:31 +08:00
Xin Ouyang
3570272cd7 libsemanage: fix incorrect path for nologin
shadow package of oe-core and Debian has installed nologin into
/usr/sbin, so fix this path.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-02-17 18:19:01 +08:00
Xin Ouyang
547150199a mesa-dri: inherit enable-selinux
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-01-31 13:44:51 +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
615c38b394 libxcb: inherit enable-selinux
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-01-31 13:42:28 +08:00
Xin Ouyang
14749f3fe6 gnupg: inherit enable-selinux
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-01-31 13:40:00 +08:00
Xin Ouyang
66ef1caf8e libcap-ng: remove old version
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-01-30 10:06:28 +08:00
Xin Ouyang
21cfb8ba36 rpm: inherit with-selinux
We should also enable selinux only for target rpm, so inherit
with-selinux.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-01-29 15:26:03 +08:00