Skip to content

Commit c51ea46

Browse files
Allow both root and syslog uid
Signed-off-by: Alan Moore <alan.moore@canonical.com>
1 parent cb8c754 commit c51ea46

7 files changed

Lines changed: 8 additions & 6 deletions

File tree

linux_os/guide/system/permissions/files/permissions_var_log_dir/file_ownerships_var_log/bash/shared.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# platform = Ubuntu 24.04
1+
# platform = multi_platform_ubuntu
22
# reboot = false
33
# strategy = configure
44
# complexity = low

linux_os/guide/system/permissions/files/permissions_var_log_dir/file_ownerships_var_log/oval/shared.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
<unix:password_object id="object_syslog_uid" version="1">
1010
{{% if 'debian' in product %}}
1111
<unix:username operation="pattern match">root</unix:username>
12+
{{%- elif 'ubuntu' in product %}}
13+
<unix:username operation="pattern match">(root|syslog)</unix:username>
1214
{{% else %}}
1315
<unix:username operation="pattern match">syslog</unix:username>
1416
{{% endif %}}

linux_os/guide/system/permissions/files/permissions_var_log_dir/file_ownerships_var_log/tests/excluded_files.pass.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# platform = Ubuntu 24.04
2+
# platform = multi_platform_ubuntu
33
# packages = rsyslog
44

55
chown root -R /var/log/*

linux_os/guide/system/permissions/files/permissions_var_log_dir/file_ownerships_var_log/tests/owned_by_nobody.fail.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# platform = Ubuntu 24.04
2+
# platform = multi_platform_ubuntu
33
# packages = rsyslog
44

55
chown root -R /var/log/*

linux_os/guide/system/permissions/files/permissions_var_log_dir/file_ownerships_var_log/tests/owned_by_root.pass.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# platform = Ubuntu 24.04
2+
# platform = multi_platform_ubuntu
33
# packages = rsyslog
44

55
chown root -R /var/log/*

linux_os/guide/system/permissions/files/permissions_var_log_dir/file_ownerships_var_log/tests/owned_by_syslog.pass.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# platform = Ubuntu 24.04
2+
# platform = multi_platform_ubuntu
33
# packages = rsyslog
44

55
chown root -R /var/log/*

linux_os/guide/system/permissions/files/permissions_var_log_dir/file_ownerships_var_log/tests/symlink.pass.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# platform = Ubuntu 24.04
2+
# platform = multi_platform_ubuntu
33

44
chown root -R /var/log/*
55

0 commit comments

Comments
 (0)