On Tue, 31 Jul 2018 15:36:45 -0500
Bruce Dubbs <[email protected]> wrote:

> In systemd's src/basic/missing.h is:
> 
> #ifndef SCM_SECURITY
> #define SCM_SECURITY 0x03
> #endif
> 
> Shouldn't that take care of it?  missing.h is included in 
> src/journal/journald-server.c.


  Bruce,

Yep, good catch. Searching more, I can confirm (with Ken) that neither the
sanitized kernel headers, nor glibc (at least version 2.27) provide
SCM_SECURITY. So, it has to come internal to the systemd source tree.

In the systemd source tree for v239:

grep -r SCM_SECURITY *

yields:

src/journal/journald-server.c:   cmsg->cmsg_type == SCM_SECURITY) {
src/basic/missing.h:#ifndef SCM_SECURITY
src/basic/missing.h:#define SCM_SECURITY 0x03

in missing.h, SCM_SECURITY is defined around line 547.

And indeed journald-server.c loads missing.h around line
45:

#include "missing.h"


spiky, what does 
grep -r SCM_SECURITY *
show on your systemd source tree? Does your src/journal/journald-server.c
include missing.h ?

You could manually set

#define SCM_SECURITY 0x03

in journald-server.c to get around this problem (and likely hit right
upon another), but you should look into why missing.h is not doing the
def for you. Your systemd source tree might have gotten corrupted
somehow.


  Cheers,

  Mike

-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to