Skip to content

Commit

Permalink
Merge pull request #12602 from jan-cerny/file_permissions_unauthorize…
Browse files Browse the repository at this point in the history
…d_sgid

Fix file_permissions_unauthorized_sgid
  • Loading branch information
Mab879 authored Nov 12, 2024
2 parents 33a7ba2 + 86b165e commit d77f338
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
<unix:sgid datatype="boolean">true</unix:sgid>
</unix:file_state>

<unix:file_state id="state_file_permissions_unauthorized_sgid_sysroot" version="1"
comment="Used to filter out all files in the /sysroot directory">
<unix:filepath operation="pattern match">^/sysroot/.*$</unix:filepath>
</unix:file_state>

{{%- set var_local_mount_points = "var_" ~ rule_id ~ "_local_mountpoints" -%}}
{{{ create_local_mount_points_list(var_local_mount_points) }}}

Expand All @@ -28,6 +33,7 @@
var_ref="{{{ var_local_mount_points }}}"/>
<unix:filename operation="pattern match">^.*$</unix:filename>
<filter action="include">state_file_permissions_unauthorized_sgid_set</filter>
<filter action="exclude">state_file_permissions_unauthorized_sgid_sysroot</filter>
</unix:file_object>

<local_variable id="var_file_permissions_unauthorized_sgid_all_sgid_files" version="1"
Expand Down

0 comments on commit d77f338

Please sign in to comment.