From: Joshua Brindle <method@manicmethod.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: selinux@tycho.nsa.gov, Yuichi Nakamura <ynakam@hitachisoft.jp>
Subject: Re: [patch] libselinux: fix EMBEDDED=y build
Date: Mon, 25 Aug 2008 09:51:58 -0400 [thread overview]
Message-ID: <48B2B8FE.7030603@manicmethod.com> (raw)
In-Reply-To: <1219671784.2721.83.camel@moss-spartans.epoch.ncsc.mil>
Stephen Smalley wrote:
> Fix EMBEDDED=y build for libselinux.
>
> Before:
> $ make EMBEDDED=y > out
> cc1: warnings being treated as errors
> load_policy.c: In function ‘selinux_mkload_policy’:
> load_policy.c:59: warning: unused variable ‘i’
> load_policy.c:59: warning: unused variable ‘len’
> load_policy.c:59: warning: unused variable ‘values’
> load_policy.c:54: warning: unused variable ‘names’
> make[1]: *** [load_policy.o] Error 1
>
> After:
> $ make EMBEDDED=y > out
> $ make clean all > out
>
> Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
trivial, acked-by: Joshua Brindle <method@manicmethod.com>
>
> ---
>
> libselinux/src/load_policy.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/libselinux/src/load_policy.c b/libselinux/src/load_policy.c
> index 63f6609..affe37b 100644
> --- a/libselinux/src/load_policy.c
> +++ b/libselinux/src/load_policy.c
> @@ -51,12 +51,12 @@ int selinux_mkload_policy(int preservebools)
> int kernvers = security_policyvers();
> int maxvers = kernvers, minvers = DEFAULT_POLICY_VERSION, vers;
> int setlocaldefs = load_setlocaldefs;
> - char path[PATH_MAX], **names;
> + char path[PATH_MAX];
> struct stat sb;
> struct utsname uts;
> size_t size;
> void *map, *data;
> - int fd, rc = -1, *values, len, i, prot;
> + int fd, rc = -1, prot;
> sepol_policydb_t *policydb;
> sepol_policy_file_t *pf;
> int usesepol = 0;
> @@ -251,6 +251,8 @@ checkbool:
>
> #ifndef DISABLE_BOOL
> if (preservebools) {
> + int *values, len, i;
> + char **names;
> rc = security_get_boolean_names(&names, &len);
> if (!rc) {
> values = malloc(sizeof(int) * len);
>
--
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.
prev parent reply other threads:[~2008-08-25 13:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-25 13:43 [patch] libselinux: fix EMBEDDED=y build Stephen Smalley
2008-08-25 13:51 ` Joshua Brindle [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48B2B8FE.7030603@manicmethod.com \
--to=method@manicmethod.com \
--cc=sds@tycho.nsa.gov \
--cc=selinux@tycho.nsa.gov \
--cc=ynakam@hitachisoft.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.