2022-03-21 12:25:55 +00:00
|
|
|
#!/bin/execlineb -P
|
|
|
|
s6-envdir -i /etc/s6/env/core/path
|
|
|
|
importas -i PATH PATH
|
|
|
|
emptyenv
|
|
|
|
|
|
|
|
export PATH $PATH
|
2022-07-30 14:00:54 +00:00
|
|
|
define DEST /sys/kernel/security
|
|
|
|
define FSTYPE securityfs
|
|
|
|
define OPTS nosuid,nodev,noexec
|
2022-03-21 12:25:55 +00:00
|
|
|
|
|
|
|
foreground {
|
2022-07-30 14:00:54 +00:00
|
|
|
foreground { mkdir -p $DEST } mount -t $FSTYPE -o $OPTS securityfs $DEST
|
2022-03-21 12:25:55 +00:00
|
|
|
} if -nt {
|
|
|
|
importas status ? test $status -eq 1
|
|
|
|
}
|