On Tue, Jul 31, 2018 at 03:50:21PM -0400, Michael Shell wrote:
> On Mon, 30 Jul 2018 20:05:54 +0100
> spiky <[email protected]> wrote:
>
> > ../src/journal/journald-server.c:1134:45: error: 'SCM_SECURITY'
> > undeclared (first use in this function); did you mean 'PF_SECURITY'?
> > cmsg->cmsg_type == SCM_SECURITY) {
> > ^~~~~~~~~~~~
>
>
> SCM_SECURITY is defined in the Linux kernel headers in
> /include/linux/socket.h
>
> https://elixir.bootlin.com/linux/latest/source/include/linux/socket.h#L152
>
>
> /* "Socket"-level control message types: */
>
> #define SCM_RIGHTS 0x01 /* rw: access rights (array of
> int) */
> #define SCM_CREDENTIALS 0x02 /* rw: struct ucred */
> #define SCM_SECURITY 0x03 /* rw: security label */
>
>
> However, given that we are supposed to use "sanitized" kernel headers,
> it is glibc's job to export these values. I believe this is done in
> /usr/include/bits/socket.h
>
> What version of glibc are you using? Perhaps older versions don't define
> SCM_SECURITY?
>
> Can someone with a recent glibc system verify that SCM_SECURITY is indeed
> defined in /usr/include/bits/socket.h ?
>
> FWIW, all the header include files that have references to SCM_SECURITY
> can be found using:
>
> cd /usr/include
> find . -type f -name "*.h" -print|sort|xargs grep SCM_SECURITY
>
On (sysv) LFS-svn-20180516 (glibc-2.27) which I have currently
booted to build a new system, that returns nothing.
Looking at backup data from sysv systems created in the last 18+
months, none of them return any results. SCM_RIGHTS and
SCM_CREDENTIALS are present, but not SCM_SECURITY.
>
> You can either add the SCM_ defs to your /usr/include/bits/socket.h or add
> them to your systemd's journald-server.c
>
Very odd, but not my problem™
ĸen
--
Entropy not found, thump keyboard to continue
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page