diff --git a/stages/org.osbuild.selinux b/stages/org.osbuild.selinux index a7f1fc1c..5ec319f6 100755 --- a/stages/org.osbuild.selinux +++ b/stages/org.osbuild.selinux @@ -25,6 +25,7 @@ import os import subprocess import sys + SCHEMA = """ "additionalProperties": false, "required": ["file_contexts"], @@ -36,11 +37,13 @@ SCHEMA = """ } """ + def main(tree, options): file_contexts = os.path.join(f"{tree}", options["file_contexts"]) subprocess.run(["setfiles", "-F", "-r", f"{tree}", f"{file_contexts}", f"{tree}"], check=True) + if __name__ == '__main__': args = json.load(sys.stdin) r = main(args["tree"], args["options"])