From f680c4c95e2128fff39860c28d23e6139a832696 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Thu, 21 Mar 2024 19:14:56 +0100 Subject: 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. --- tools/dbus_exporter.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools') diff --git a/tools/dbus_exporter.py b/tools/dbus_exporter.py index 819584dcba..db95a58950 100755 --- a/tools/dbus_exporter.py +++ b/tools/dbus_exporter.py @@ -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) -- cgit v1.2.3