SRC_URI = "http://oss.tresys.com/files/refpolicy/refpolicy-${PV}.tar.bz2;" SRC_URI[md5sum] = "6a5c975258cc8eb92c122f11b11a5085" SRC_URI[sha256sum] = "6039ba854f244a39dc727cc7db25632f7b933bb271c803772d754d4354f5aef4" FILESEXTRAPATHS_prepend := "${THISDIR}/refpolicy-2.20130424:" # Fix file contexts for Poky SRC_URI += "file://poky-fc-subs_dist.patch \ file://poky-fc-update-alternatives_sysvinit.patch \ file://poky-fc-update-alternatives_sysklogd.patch \ file://poky-fc-update-alternatives_hostname.patch \ file://poky-fc-fix-real-path_resolv.conf.patch \ file://poky-fc-fix-real-path_login.patch \ file://poky-fc-fix-real-path_shadow.patch \ file://poky-fc-fix-bind.patch \ file://poky-fc-clock.patch \ file://poky-fc-corecommands.patch \ file://poky-fc-dmesg.patch \ file://poky-fc-fstools.patch \ file://poky-fc-iptables.patch \ file://poky-fc-mta.patch \ file://poky-fc-netutils.patch \ file://poky-fc-nscd.patch \ file://poky-fc-screen.patch \ file://poky-fc-ssh.patch \ file://poky-fc-su.patch \ file://poky-fc-sysnetwork.patch \ file://poky-fc-udevd.patch \ file://poky-fc-rpm.patch \ file://poky-fc-ftpwho-dir.patch \ file://poky-fc-fix-real-path_su.patch \ " # Specific policy for Poky SRC_URI += "file://poky-policy-add-syslogd_t-to-trusted-object.patch \ file://poky-policy-add-rules-for-var-log-symlink.patch \ file://poky-policy-add-rules-for-var-log-symlink-apache.patch \ file://poky-policy-add-rules-for-var-log-symlink-audisp_remote_t.patch \ file://poky-policy-add-rules-for-syslogd_t-symlink.patch \ file://poky-policy-add-rules-for-var-cache-symlink.patch \ file://poky-policy-add-rules-for-tmp-symlink.patch \ file://poky-policy-add-rules-for-bsdpty_device_t.patch \ file://poky-policy-don-t-audit-tty_device_t.patch \ file://poky-policy-allow-nfsd-to-exec-shell-commands.patch \ file://poky-policy-fix-nfsd_t-to-mount_nfsd_fs_t.patch \ file://poky-policy-allow-setfiles_t-to-read-symlinks.patch \ file://poky-policy-fix-new-SELINUXMNT-in-sys.patch \ file://poky-policy-allow-sysadm-to-run-rpcinfo.patch \ " # Other policy fixes SRC_URI += "file://poky-policy-fix-xconsole_device_t-as-a-dev_node.patch \ file://poky-policy-fix-seutils-manage-config-files.patch \ file://poky-policy-fix-setfiles-statvfs-get-file-count.patch \ file://poky-policy-fix-dmesg-to-use-dev-kmsg.patch \ file://hostname-do-not-audit-attempts-by-hostname-to-read-a.patch \ file://sysnetwork-dhcpc-binds-socket-to-random-high-udp-por.patch \ file://ftp-add-ftpd_t-to-mlsfilewrite.patch \ " # Backport from upstream SRC_URI += "file://Allow-ping-to-get-set-capabilities.patch \ file://filesystem-associate-tmpfs_t-shm-to-device_t-devtmpf.patch \ " include refpolicy_common.inc