* [SEMODULE] Make -B flag force rebuild (without changes)
@ 2005-12-24 1:00 Ivan Gyurdiev
0 siblings, 0 replies; only message in thread
From: Ivan Gyurdiev @ 2005-12-24 1:00 UTC (permalink / raw)
To: SELinux List; +Cc: Stephen Smalley
[-- Attachment #1: Type: text/plain, Size: 191 bytes --]
Use semanage_set_rebuild() to make the -B flag force a rebuild.
This is necessary since I changed commit to only rebuild if changes were
made.
The whitespace in semodule is an awful mess..
[-- Attachment #2: semodule.force_rebuild.diff --]
[-- Type: text/x-patch, Size: 790 bytes --]
diff -Naurp --exclude-from excludes old/policycoreutils/semodule/semodule.c new/policycoreutils/semodule/semodule.c
--- old/policycoreutils/semodule/semodule.c 2005-11-29 10:55:01.000000000 -0500
+++ new/policycoreutils/semodule/semodule.c 2005-12-23 19:51:39.000000000 -0500
@@ -334,13 +334,13 @@ int main(int argc, char *argv[]) {
}
if (commit) {
- if (verbose) {
- printf("Committing changes:\n");
- }
- if (no_reload) {
+ if (verbose)
+ printf("Committing changes:\n");
+ if (no_reload)
semanage_set_reload(sh, 0);
- }
- result = semanage_commit(sh);
+ if (build)
+ semanage_set_rebuild(sh, 1);
+ result = semanage_commit(sh);
}
if (result < 0) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-12-24 1:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-24 1:00 [SEMODULE] Make -B flag force rebuild (without changes) Ivan Gyurdiev
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.