Skip to content

Commit 6b94de4

Browse files
committed
Fix file_owner OVAL to check exact username
1 parent a20943a commit 6b94de4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/templates/file_owner/oval.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
{{%- else %}}
2323
{{%- for own in OWNERS %}}
2424
<unix:password_object id="object_file_owner{{{ FILEID }}}_{{{ own }}}_uid" version="1">
25-
<unix:username operation="pattern match">{{{ own }}}</unix:username>
25+
<unix:username operation="equals">{{{ own }}}</unix:username>
2626
</unix:password_object>
2727
<local_variable id="var_file_owner{{{ FILEID }}}_{{{ own }}}_uid" comment="Retrieve the uid of {{{ own }}}" datatype="int" version="1">
2828
<object_component item_field="user_id" object_ref="object_file_owner{{{ FILEID }}}_{{{ own }}}_uid" />

0 commit comments

Comments
 (0)