Re: [RFC][PATCH v2 2/2] selinux: generate flask headers during kernel build

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
> 
> ---
>  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@xxxxxxxxxxxxx>

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux