2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-30 22:05:27 +00:00

aa-genprof: get rid of subprocess with shell=True

This commit is contained in:
Christian Boltz
2022-02-21 22:43:29 +01:00
parent 6e5fdb5c05
commit c0734411ee

View File

@@ -143,7 +143,7 @@ while not done_profiling:
logmark = subprocess.check_output(['date | md5sum'], shell=True)
logmark = logmark.decode('ascii').strip()
logmark = re.search('^([0-9a-f]+)', logmark).groups()[0]
t=subprocess.call("%s -p kern.warn 'GenProf: %s'"%(apparmor.logger_path(), logmark), shell=True)
t=subprocess.call([apparmor.logger_path(), '-p', 'kern.warn', 'GenProf: %s'%logmark])
else:
logmark = last_audit_entry_time()