summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-03-21 19:14:56 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-03-21 23:54:25 +0100
commitf680c4c95e2128fff39860c28d23e6139a832696 (patch)
tree69d0db9ed0beb71b02ed3de746f3cc2bbc496032 /tools
parentMerge pull request #31880 from yuwata/network-varlink-trivial-cleanups (diff)
downloadsystemd-f680c4c95e2128fff39860c28d23e6139a832696.tar.xz
systemd-f680c4c95e2128fff39860c28d23e6139a832696.zip
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.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/dbus_exporter.py2
1 files changed, 2 insertions, 0 deletions
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)