Commit Graph

108 Commits

Author SHA1 Message Date
Philip Tricca
f0adb4251d sudo: rename bbappend from 1.8.7 to 1.8.8
Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2013-12-04 10:16:52 -05:00
Qiang Chen
2e7fb736e1 selinux: remove reference to locale env files from login
[ CQID: WIND00425413 ]

pam.d/login refered to the /etc/default/locale env file.

This file is not used in oe-core/Poky.

Remove the this reference to avoid error messages in auth.log.

Signed-off-by: Qiang Chen <qiang.chen@windriver.com>
Signed-off-by: Jeff Polk <jeff.polk@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2013-10-02 13:24:45 -04:00
Xin Ouyang
c1dc285800 always force to restore file contexts in initscripts
In policycoreutils-2.13+, restorecon changes its default behaviour,
and does not restore context if the file' type is correct, even its
mcs/mls level is incorrect.
We should force it always to restore file contexts in initscripts to
avoid issues.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2013-10-02 13:24:44 -04:00
Joe Slater
a4c5b95607 tar: add acl dependency information
If acl is a distro feature, we want to depend
on it.  Note that without the xattrs patch, tar
cannot deal with acl information.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
2013-10-02 10:02:58 -04:00
Xin Ouyang
0979b0023b sudo: uprev to oe-core version 1.8.7
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-08-22 13:01:55 +08:00
Xin Ouyang
3300da8d80 net-tools: uprev to oe-core version 1.60-25
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-08-22 13:01:26 +08:00
Xin Ouyang
a61b4e01ab cronie: uprev to oe-core version 1.4.11
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-08-22 13:01:01 +08:00
Mark Hatle
a530caf828 dbus/glib-2.0/augeas/mesa: Rebase bbappends to oe-core 20130801
Rebase the bbappends to match the current oe-core versions.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2013-08-02 00:08:14 +00:00
Xin Ouyang
908a4aadce findutils-4.4.2: fix conflict with new oe-core patch
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-06-17 22:56:35 +08:00
Xin Ouyang
7095922902 sudo: uprev to 1.8.6p8 to fit oe-core
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-06-17 18:06:19 +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
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
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
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
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
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
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
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
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
393e22b3c9 sed: inherit with-selinux for new version
sed-4.2.2 now has new configure option --with-selinux,
so inherit with-selinux bbclass.
Also, remove the patch since new version fix the issue.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-01-19 16:34:17 +08:00
Xin Ouyang
becdc022eb packages: uprev bbappends to fit oe-core
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2013-01-19 16:34:14 +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
104f048221 sed: fix parallel compile error with libselinux
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-12-19 19:00:02 +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
a11a0f7d08 lsof: version 4.86 for oe-core uprev.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-10-18 11:07:44 +08:00
Xin Ouyang
4c59f03c83 sysklogd: initscripts restorecon for log devices
sysklogd would create /dev/log and create log files in /var/log
with the default security contexts while starting.
So we should restore the correct security contexts.

The initscript file is from oe-core, and add these lines after
the start action.

test ! -x /sbin/restorecon || \
	/sbin/restorecon -R /dev/log /var/log/

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-10-18 11:07:44 +08:00
Xin Ouyang
154da76033 libpam: add pam-plugin-selinux to RDEPENDS
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-10-18 11:07:44 +08:00
Xin Ouyang
59e12a33ed shadow: pam config for login to use pam_selinux module
login should use pam_selinux module to label security contexts of
processes while login into system.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-10-18 11:07:44 +08:00
Xin Ouyang
2b3fa8a8c3 pam-1.1.6: fix wrong path for sepermit module
Fix this error:
===================
| mkdir -p /var/run/sepermit
| mkdir: cannot create directory `/var/run/sepermit': Permission denied

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-08-21 16:17:41 +08:00
Xin Ouyang
50bababcd2 libpam: change to 1.1.6 for poky master.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-08-20 14:03:38 +08:00
Xin Ouyang
9ed24fae8c findutils-4.4.2: suitable version of gnulib for selinux
Add a suitable version of gnulib into SRC_URI, and run
import-gnulib.sh to update it.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-08-13 11:53:21 -05:00
Aws Ismail
b4b777458f Fetch selinux-at module from gnulib repo
[ CQID: WIND00365962 ]

Rather than following the approach in
findutils-with-selinux-gnulib.patch,
the import-gnulib configuration was
modified to enable fetching the latest updates
related to selinux support. Specifically,
selinux-at module is now in fetched in gnulib
in order for it be used by findutils if
selinux is enabled.

Signed-off-by: Aws Ismail <aws.ismail@windriver.com>
2012-08-10 15:08:22 -05:00
Xin Ouyang
c9a06873bd findutils-4.4.2: fix build failure while no selinux disto_feature.
Current patches for selinux simply add selinux codes without
conditional switches.
And also, the gnulib patch is incomplete.
These will cause build failures while we include selinux layers but
do not specify selinux in DISTO_FEATURES.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-07-28 16:25:25 +08:00
Xin Ouyang
051212b652 ustr: fix wrong packages split.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-06-29 17:03:48 +08:00
Xin Ouyang
ac1f2dfb53 sudo: uprev to 1.8.5p2
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-06-28 16:32:56 +08:00
Xin Ouyang
4167ee70f4 psmisc: uprev to 22.19
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-06-28 16:32:52 +08:00
Xin Ouyang
aef5531fa3 findutils: 4.4.2, support selinux
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-06-28 10:42:22 +08:00
Xin Ouyang
02bcec2d70 findutils: 4.2.31, support selinux
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-06-28 10:42:22 +08:00
Xin Ouyang
b4da06fbdc parted: Build with selinux support.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-06-28 10:42:22 +08:00
Xiaofeng Yan
984a1f5d49 logrotate: Support selinux
Add the selinux support for logrotate.

Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-06-25 10:19:02 +08:00
Xin Ouyang
f2da358672 sudo: Build with selinux support.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-06-15 18:01:19 +08:00
Xin Ouyang
c911fda243 net-utils: Build with selinux support.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-06-13 18:08:50 +08:00
Xin Ouyang
865c1820bd at: Build with selinux support.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-06-13 18:07:21 +08:00
Xin Ouyang
8d203e6ff2 tar: Build with selinux support.
Also add a patch to support xattrs and selinux.

Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-06-12 10:22:47 +08:00
Xin Ouyang
49c3594bfb lsof: use correct CFLAGS/LDFLAGS.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-06-06 18:14:37 +08:00
Xin Ouyang
06337c0513 lsof: Build with selinux support.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
2012-05-31 17:42:32 +08:00
Mark Hatle
356aac4dfd ustr: Change upstream source
The upstream source appears to be down, find an alternative.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2012-05-18 18:37:09 -05:00
Xin Ouyang
16668088dd augeas: Build with selinux support. 2012-04-27 15:55:39 +08:00
Xin Ouyang
59a303b29d psmisc: Drop bbappend v22.14 since bb has been droped. 2012-04-17 17:36:44 +08:00
Xin Ouyang
2f44004dab psmisc: bbappend to build with libselinux, v22.16. 2012-04-17 17:14:44 +08:00
Xin Ouyang
57d388fe13 libpam: bbappend to build with libselinux. 2012-04-17 17:13:27 +08:00
Xin Ouyang
9a7b0ecb92 ustr: Fix for multi-libs. 2012-03-27 17:20:36 +08:00
Xin Ouyang
8534bc56a9 ustr: Move ustr to recipes-extended. 2012-02-22 16:35:36 +08:00
Mark Hatle
f1c357ffe4 shadow: Enable SE Linux support
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2012-01-31 13:59:33 -06:00
Mark Hatle
471d40783f psmisc: Enable SE Linux support
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2012-01-31 13:59:20 -06:00
Mark Hatle
2a56e555b9 cronie: Enable SE Linux support
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2012-01-31 13:59:09 -06:00