All of lore.kernel.org
 help / color / mirror / Atom feed
From: KaiGai Kohei <kaigai@ak.jp.nec.com>
To: Stephen Smalley <stephen.smalley@gmail.com>
Cc: selinux@tycho.nsa.gov
Subject: Re: [RFC][PATCH v2 2/2] selinux:  generate flask headers during kernel build
Date: Mon, 28 Sep 2009 12:07:29 +0900	[thread overview]
Message-ID: <4AC02871.9060608@ak.jp.nec.com> (raw)
In-Reply-To: <1253833647.2452.4.camel@moss-aggies>

Stephen Smalley wrote:
> Add a simple utility (scripts/selinux/genheaders) and invoke it to
> generate the kernel-private class and permission indices in flask.h
> and av_permissions.h automatically during the kernel build from the
> security class mapping definitions in classmap.h.  Adding new kernel
> classes and permissions can then be done just by adding them to classmap.h.
> 
> Signed-off-by:  Stephen Smalley <sds@tycho.nsa.gov>
> 
> ---
>  scripts/selinux/Makefile                  |    4 +-
>  scripts/selinux/genheaders/Makefile       |    5 +
>  scripts/selinux/genheaders/genheaders.c   |  118 ++++
>  security/selinux/Makefile                 |    3 +
>  security/selinux/include/av_permissions.h |  870 -----------------------------
>  security/selinux/include/flask.h          |   91 ---
>  6 files changed, 128 insertions(+), 963 deletions(-)
>  create mode 100644 scripts/selinux/genheaders/Makefile
>  create mode 100644 scripts/selinux/genheaders/genheaders.c
>  delete mode 100644 security/selinux/include/av_permissions.h
>  delete mode 100644 security/selinux/include/flask.h

It seems to me flask.h and av_permissions.h are not generated prior to
compile source files, such as avc.c.

[kaigai@saba selinux-2.6]$ make
  CHK     include/linux/version.h
   :
  CC      security/selinux/avc.o
In file included from security/selinux/avc.c:32:
security/selinux/include/avc.h:20:19: error: flask.h: No such file or directory
security/selinux/include/avc.h:21:28: error: av_permissions.h: No such file or directory
make[2]: *** [security/selinux/avc.o] Error 1
make[1]: *** [security/selinux] Error 2
make: *** [security] Error 2

BTW, it needs to be built prior to the building mdp.c?

  HOSTCC  scripts/selinux/mdp/mdp
scripts/selinux/mdp/mdp.c:32:19: error: flask.h: No such file or directory
make[3]: *** [scripts/selinux/mdp/mdp] Error 1
make[2]: *** [scripts/selinux/mdp] Error 2
make[1]: *** [scripts/selinux] Error 2
make: *** [scripts] Error 2

Thanks,
-- 
OSS Platform Development Division, NEC
KaiGai Kohei <kaigai@ak.jp.nec.com>

--
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.

  reply	other threads:[~2009-09-28  3:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-24 23:07 [RFC][PATCH v2 2/2] selinux: generate flask headers during kernel build Stephen Smalley
2009-09-28  3:07 ` KaiGai Kohei [this message]
2009-09-28 13:51   ` Stephen Smalley
2009-09-28 19:52     ` Stephen Smalley

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=4AC02871.9060608@ak.jp.nec.com \
    --to=kaigai@ak.jp.nec.com \
    --cc=selinux@tycho.nsa.gov \
    --cc=stephen.smalley@gmail.com \
    /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.