Plan OPNsense POSIX root scripts with explicit device policy, profile and approval
This commit is contained in:
+1
-1
@@ -206,7 +206,7 @@ function reportedScriptProfiles(device: RecordValue) {
|
||||
if (!caps.has('run_script')) return 'Nicht gemeldet';
|
||||
const windows = os === 'windows';
|
||||
const identity = windows ? 'system' : 'root';
|
||||
const service = windows ? 'PowerShell als Dienstkonto' : 'Shell als Dienstkonto';
|
||||
const service = os==='opnsense' ? 'Kernelabfrage als Dienstkonto' : windows ? 'PowerShell als Dienstkonto' : 'Shell als Dienstkonto';
|
||||
if (!caps.has(os + '.base/1') || caps.has(windows ? 'linux.base/1' : 'windows.base/1')) return 'Nicht gemeldet';
|
||||
if (windows && !['rmm.sync.v1', 'script.powershell/1', 'script.powershell.process_remote_signed/1'].every(cap => caps.has(cap)))
|
||||
return 'Nicht gemeldet';
|
||||
|
||||
Reference in New Issue
Block a user