Avoid trying to set "<<none>>" file context.
authorjbj <devnull@localhost>
Sat, 10 Jan 2004 18:48:19 +0000 (18:48 +0000)
committerjbj <devnull@localhost>
Sat, 10 Jan 2004 18:48:19 +0000 (18:48 +0000)
CVS patchset: 7073
CVS date: 2004/01/10 18:48:19

lib/fsm.c

index 7e0d5a1..a5e1b63 100644 (file)
--- a/lib/fsm.c
+++ b/lib/fsm.c
@@ -2152,7 +2152,8 @@ if (!(fsm->mapFlags & CPIO_ALL_HARDLINKS)) break;
            }
        break;
     case FSM_LSETFCON:
-       if (fsm->fcontext == NULL || *fsm->fcontext == '\0')
+       if (fsm->fcontext == NULL || *fsm->fcontext == '\0'
+        || !strcmp(fsm->fcontext, "<<none>>"))
            break;
        rc = lsetfilecon(fsm->path, (security_context_t)fsm->fcontext);
        if (_fsm_debug && (stage & FSM_SYSCALL))