Skip to contentSkip to conversation

Toggle modified flag in semanage_policydb_modify

SEMANAGE Ivan Gyurdiev 1 participant 1 message Dec 13, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

Here's some patches that have been lying around for a while... This one sets the modify flag in policydb_modify.

libsemanage/src/database_policydb.c +1 -0
diff -Naurp --exclude-from excludes old/libsemanage/src/database_policydb.c new/libsemanage/src/database_policydb.c
@@ -257,6 +257,7 @@ static int dbase_policydb_modify (
 		dbase->policydb, key, data) < 0)
 		goto err;
 
+	dbase->modified = 1;
 	return STATUS_SUCCESS;
 
 	err: