Lines Matching full:etc
42 mkdir -p /etc/selinux/dummy/policy
43 mkdir -p /etc/selinux/dummy/contexts/files
45 echo "__default__:user_u:s0" > /etc/selinux/dummy/seusers
46 echo "base_r:base_t:s0" > /etc/selinux/dummy/contexts/failsafe_context
47 echo "base_r:base_t:s0 base_r:base_t:s0" > /etc/selinux/dummy/default_contexts
48 cat > /etc/selinux/dummy/contexts/x_contexts <<EOF
55 touch /etc/selinux/dummy/contexts/virtual_domain_context
56 touch /etc/selinux/dummy/contexts/virtual_image_context
58 cp file_contexts /etc/selinux/dummy/contexts/files
59 cp dbus_contexts /etc/selinux/dummy/contexts
60 cp policy.$VERS /etc/selinux/dummy/policy
61 FC_FILE=/etc/selinux/dummy/contexts/files/file_contexts
63 if [ ! -d /etc/selinux ]; then
64 mkdir -p /etc/selinux
66 if [ -f /etc/selinux/config ]; then
67 echo "/etc/selinux/config exists, moving to /etc/selinux/config.bak."
68 mv /etc/selinux/config /etc/selinux/config.bak
70 echo "Creating new /etc/selinux/config for dummy policy."
71 cat > /etc/selinux/config << EOF
76 cd /etc/selinux/dummy/contexts/files