From: Zofia Abramowska Date: Tue, 8 Oct 2013 14:24:24 +0000 (+0200) Subject: Change apply_cipso_cb() to use proper apply_cipso_file() X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=460fc81a6725d4d5df70480ae04b0303f4f56918;p=framework%2Fsecurity%2Fsmack.git Change apply_cipso_cb() to use proper apply_cipso_file() apply_cipso_cb() used improper apply_rules_file(). Changed this to call apply_cipso_file() instead. (cherry picked from commit d45ffe9082243377cdba9a2d224bab0e110501e0) --- diff --git a/utils/common.c b/utils/common.c index 6b0f270..4700821 100644 --- a/utils/common.c +++ b/utils/common.c @@ -186,7 +186,7 @@ static int apply_cipso_cb(const char *fpath, const struct stat *sb, int typeflag if (fd < 0) return -1; - ret = apply_rules_file(fd, 0) ? FTW_STOP : FTW_CONTINUE; + ret = apply_cipso_file(fd) ? FTW_STOP : FTW_CONTINUE; close(fd); return ret; }