bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] selinux-at: new module


From: Bruno Haible
Subject: Re: [PATCH] selinux-at: new module
Date: Thu, 6 Aug 2009 22:17:28 +0200
User-agent: KMail/1.9.9

Hi Jim,

> +int  getfileconat (int fd, char const *file, security_context_t *con);
> +int lgetfileconat (int fd, char const *file, security_context_t *con);
> +int  setfileconat (int fd, char const *file, security_context_t con);
> +int lsetfileconat (int fd, char const *file, security_context_t con);

These functions have no specification, neither in the .h file nor in the .c
file. A specification is probably easy to make up, by reference to getfilecon
and setfilecon (for which gnulib also lacks documentation, btw, see [1] and
[2]).

> +gl_save_LIBS=$LIBS
> +  LIB_SELINUX=
> +  AC_SEARCH_LIBS([setfilecon], [selinux],
> +                 [test "$ac_cv_search_setfilecon" = "none required" ||
> +                  LIB_SELINUX=$ac_cv_search_setfilecon])
> +  AC_SUBST(LIB_SELINUX)
> +LIBS=$gl_save_LIBS

These lines is not necessary; LIB_SELINUX is already set by
m4/selinux-selinux-h.m4, which is part of the 'selinux-h' module,
on which 'selinux-at' depends.

> +Include:
> +selinux-at.h

The filename here should be enclosed in double-quotes or angle brackets,
otherwise "gnulib-tool --extract-include-directive selinux-at" and
MODULES.html.sh produce an unusable output.

Bruno


[1] http://lists.gnu.org/archive/html/bug-gnulib/2008-10/msg00399.html
[2] http://lists.gnu.org/archive/html/bug-gnulib/2008-10/msg00400.html




reply via email to

[Prev in Thread] Current Thread [Next in Thread]