1

Fix XattrTests failing due to unexpected attribute name by Smjert · Pull Request...

 2 years ago
source link: https://github.com/osquery/osquery/pull/6941
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Copy link

Member

Smjert commented on Feb 6, 2021

The extended attributes present on a test file
might not be only the ones set by the test itself.
If SELinux is installed for instance, an additional extended attribute
is present.
Therefore instead of requiring that the list of attribute names
is exactly the one set by the test, verify that the attribute names
we expect are present in the list.

Fixes #6870


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK