Merge tag 'fuse-update-6.9' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi...
[linux-2.6-block.git] / security / tomoyo / Makefile
CommitLineData
b2441318 1# SPDX-License-Identifier: GPL-2.0
059d84db 2obj-y = audit.o common.o condition.o domain.o environ.o file.o gc.o group.o load_policy.o memory.o mount.o network.o realpath.o securityfs_if.o tomoyo.o util.o
efe836ab 3
bf7a9ab4 4targets += builtin-policy.h
80f8be7a
MY
5
6quiet_cmd_policy = POLICY $@
7 cmd_policy = { \
8 $(foreach x, profile exception_policy domain_policy manager stat, \
9 printf 'static char tomoyo_builtin_$x[] __initdata =\n'; \
10 sed -e 's/\\/\\\\/g' -e 's/\"/\\"/g' -e 's/\(.*\)/\t"\1\\n"/' -- $(firstword $(filter %/$x.conf %/$x.conf.default, $^) /dev/null); \
11 printf '\t"";\n';) \
12 } > $@
bf7a9ab4 13
eaf2213b 14$(obj)/builtin-policy.h: $(wildcard $(obj)/policy/*.conf $(srctree)/$(src)/policy/*.conf.default) FORCE
bf7a9ab4 15 $(call if_changed,policy)
efe836ab 16
df4840c1 17ifndef CONFIG_SECURITY_TOMOYO_INSECURE_BUILTIN_SETTING
efe836ab 18$(obj)/common.o: $(obj)/builtin-policy.h
df4840c1 19endif