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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user