From: Daan De Meyer Date: Thu, 21 Mar 2024 18:14:56 +0000 (+0100) Subject: dbus-exporter: Set explicit mode on output directory X-Git-Tag: v256-rc1~452 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f680c4c95e2128fff39860c28d23e6139a832696;p=thirdparty%2Fsystemd.git 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. --- diff --git a/tools/dbus_exporter.py b/tools/dbus_exporter.py index 819584dcbab..db95a58950d 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)