summaryrefslogtreecommitdiff
blob: 6d6fbf60178e38d97c1775e52f6f8a555095c94b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- src/probes/unix/FileProbe.cpp.old	2014-10-08 09:15:37.000000000 +0200
+++ src/probes/unix/FileProbe.cpp	2014-10-08 09:15:55.000000000 +0200
@@ -386,18 +386,8 @@
 	   6) If a file has an ACL, the value will be 'true'.
 	*/
 	
-	int hasExtendedAcl = acl_extended_file(filePath.c_str());
-	if(hasExtendedAcl > -1){ // behavior 4, 5, and 6
-          item->AppendElement(new ItemEntity("has_extended_acl",Common::ToString(hasExtendedAcl),OvalEnum::DATATYPE_BOOLEAN,OvalEnum::STATUS_EXISTS,0));
-	}else{
-	  if(errno == EOPNOTSUPP){ // behavior 3
-	    item->AppendElement(new ItemEntity("has_extended_acl","",OvalEnum::DATATYPE_BOOLEAN,OvalEnum::STATUS_DOES_NOT_EXIST,0));
-          }else{ // behavior 2
-	    item->AppendElement(new ItemEntity("has_extended_acl","",OvalEnum::DATATYPE_BOOLEAN,OvalEnum::STATUS_ERROR,0));
-            item->AppendMessage(new OvalMessage(string("Error reading ACL data: ") + strerror(errno)));
-          }
-	}
-
+	// behavior 1
+	item->AppendElement(new ItemEntity("has_extended_acl","",OvalEnum::DATATYPE_BOOLEAN,OvalEnum::STATUS_NOT_COLLECTED,0));
 # else
 	// behavior 1
 	item->AppendElement(new ItemEntity("has_extended_acl","",OvalEnum::DATATYPE_BOOLEAN,OvalEnum::STATUS_NOT_COLLECTED,0));