Change apply_cipso_cb() to use proper apply_cipso_file()
authorZofia Abramowska <z.abramowska@samsung.com>
Tue, 8 Oct 2013 14:24:24 +0000 (16:24 +0200)
committerZofia Abramowska <z.abramowska@samsung.com>
Tue, 8 Oct 2013 14:27:53 +0000 (16:27 +0200)
apply_cipso_cb() used improper apply_rules_file(). Changed this to
call apply_cipso_file() instead.

utils/common.c

index 6b0f270..4700821 100644 (file)
@@ -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;
 }