[Open-scap] [PATCH] ensure afs filesystem isn't considered local

Paul Tittle (Contractor) ptittle at cmf.nrl.navy.mil
Tue May 20 12:35:30 UTC 2014


Simon,

Thank you for the input. Does this address the issues with the patch?

Thanks,
Paul

---
  src/OVAL/probes/fsdev.c |    6 ++++++
  1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/OVAL/probes/fsdev.c b/src/OVAL/probes/fsdev.c
index 13e3a6a..4eb3306 100644
--- a/src/OVAL/probes/fsdev.c
+++ b/src/OVAL/probes/fsdev.c
@@ -131,6 +131,12 @@ is_local_fs(struct mntent *ment)
  	if (s && *s == ':')
  		return 0;
  
+	s = ment->mnt_type;
+
+	/* the AFS filesystem shouldn't be considered local */
+	if (!strcmp(s, "afs"))
+		return 0;
+
  	return 1;
  #else
  	struct stat st;
-- 1.7.1




More information about the Open-scap-list mailing list