2 .\" This file is part of libsmack
3 .\" Copyright (C) 2012 Intel Corporation
5 .\" This library is free software; you can redistribute it and/or
6 .\" modify it under the terms of the GNU Lesser General Public License
7 .\" version 2.1 as published by the Free Software Foundation.
9 .\" This library is distributed in the hope that it will be useful, but
10 .\" WITHOUT ANY WARRANTY; without even the implied warranty of
11 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 .\" Lesser General Public License for more details.
14 .\" You should have received a copy of the GNU Lesser General Public
15 .\" License along with this library; if not, write to the Free Software
16 .\" Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 .\" Brian McGillion <brian.mcgillion@intel.com>
22 .TH "SMACKCIPSO" "8" "07/05/2012" "smack-utils 1\&.0"
24 smackcipso \- Load Smack cipso rules into the kernel
31 is a tool that can be used to load cipso rules into the kernel. The general use of
33 is to read a set of rules from a file, but it also supports the convenience of loading rules from the command line. This process needs to be started with CAP_MAC_ADMIN capability otherwise it will not have sufficient permission to make the changes. Launching
35 without a path name will allow you to enter rules on the command line, these take the format "%s%4d%4d[%4d]...\\n"
36 .B (subject lvl cnt c1 c2 ...)
37 with ^D terminating the session and writing the rules to the kernel.
39 The path to the file from which to read the rules
43 returns 0 and 1 on failure.