2
# ----------------------------------------------------------------------
3
# Copyright (c) 2005 Novell, Inc. All Rights Reserved.
5
# This program is free software; you can redistribute it and/or
6
# modify it under the terms of version 2 of the GNU General Public
7
# License as published by the Free Software Foundation.
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
# GNU General Public License for more details.
14
# You should have received a copy of the GNU General Public License
15
# along with this program; if not, contact Novell, Inc.
17
# To contact Novell about this file by physical or electronic mail,
18
# you may find current contact information at www.novell.com.
19
# ----------------------------------------------------------------------
27
use Immunix::AppArmor;
29
# force $PATH to be sane
30
$ENV{PATH} = "/bin:/sbin:/usr/bin:/usr/sbin";
32
# initialize the local poo
33
setlocale(LC_MESSAGES, "");
34
textdomain("apparmor-utils");
43
'file|f=s' => \$filename,
44
'dir|d=s' => \$profiledir,
45
'logmark|m=s' => \$logmark,
49
# tell 'em how to use it...
50
&usage && exit if $help;
52
# let's convert it to full path...
53
$profiledir = get_full_path($profiledir);
55
unless (-d $profiledir) {
56
fatal_error "Can't find AppArmor profiles in $profiledir.";
59
# load all the include files
62
do_logprof_pass($logmark);
69
UI_Info(sprintf(gettext("usage: \%s [ -d /path/to/profiles ] [ -f /path/to/logfile ] [ -m \"mark in log to start processing after\""), $0));