mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 02:03:37 +08:00
dbus-exporter: Set explicit mode on output directory
Otherwise the created directory might have the sticky bit or the setgid bit set as these are inherited from the parent directory.
This commit is contained in:
parent
ec0bc263d7
commit
f680c4c95e
@ -36,6 +36,8 @@ def main():
|
||||
args = parser.parse_args()
|
||||
|
||||
args.output.mkdir(exist_ok=True)
|
||||
# Make sure we don't inherit any setgid/setuid bit or such.
|
||||
args.output.chmod(mode=0o755)
|
||||
for exe in args.executables:
|
||||
extract_interfaces_xml(args.output, exe)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user