mirror of
https://github.com/truenas/scale-build.git
synced 2025-12-24 21:07:00 +00:00
Add prefix argument to privileged audit rules (#790)
We need to strip the chroot basedir prefix and make these files have absolute paths.
This commit is contained in:
@@ -36,7 +36,7 @@ def build_rootfs_image():
|
||||
# Generate audit rules
|
||||
gencmd = os.path.join(CHROOT_BASEDIR, 'conf', 'audit_rules', 'privileged-rules.py')
|
||||
priv_rule_file = os.path.join(CHROOT_BASEDIR, 'conf', 'audit_rules', '31-privileged.rules')
|
||||
run([gencmd, '--target_dir', CHROOT_BASEDIR, '--privilege_file', priv_rule_file])
|
||||
run([gencmd, '--target_dir', CHROOT_BASEDIR, '--privilege_file', priv_rule_file, '--prefix', CHROOT_BASEDIR])
|
||||
# Remove the audit file generation script
|
||||
os.unlink(gencmd)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user