From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <456F0580.7070003@tresys.com> Date: Thu, 30 Nov 2006 11:23:28 -0500 From: Joshua Brindle MIME-Version: 1.0 To: Daniel J Walsh CC: Stephen Smalley , SE Linux Subject: Re: Patch to load_policy to enforce quiet option References: <456E06BE.1030007@redhat.com> In-Reply-To: <456E06BE.1030007@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov Daniel J Walsh wrote: > > > ------------------------------------------------------------------------ > > diff --exclude-from=exclude --exclude POTFILES.in --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/load_policy/load_policy.c policycoreutils-1.33.5/load_policy/load_policy.c > --- nsapolicycoreutils/load_policy/load_policy.c 2006-11-16 17:14:31.000000000 -0500 > +++ policycoreutils-1.33.5/load_policy/load_policy.c 2006-11-28 10:44:25.000000000 -0500 > @@ -50,12 +50,12 @@ > nargs = argc - optind; > if (nargs > 2) > usage(argv[0]); > - if (nargs >= 1) { > - fprintf(stderr, > - "%s: Warning! Policy file argument (%s) is no longer supported, installed policy is always loaded. Continuing...\n", > - argv[0], argv[optind++]); > + if (nargs >= 1 && !quiet) { > + fprintf(stderr, > + "%s: Warning! Policy file argument (%s) is no longer supported, installed policy is always loaded. Continuing...\n", > + argv[0], argv[optind++]); > } > - if (nargs == 2) { > + if (nargs == 2 && ! quiet) { > fprintf(stderr, > "%s: Warning! Boolean file argument (%s) is no longer supported, installed booleans file is always used. Continuing...\n", > argv[0], argv[optind++]); Hrm. Should quiet really squelch warnings? Also, it looks like load_policy is using a deprecated interface to squelch other output from libsepol, this should probably be fixed. -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.