[DSE-Dev] Bug#750331: setools: Patch for 'setools: FTBFS: replcon.cc:73:25: error: invalid operands...'

Andreas Florath andre at flonatel.org
Sun Aug 10 21:24:31 UTC 2014


Package: setools
Version: 3.3.8-3
Tags: patch
Followup-For: Bug #750331

Hello!

I was able to reproduce this on amd64.

Attached you can find a patch that fixes the problem:
The cause for this was, that at one point the prototype
for 'lsetfilecon_raw' was wrong.

Header: int lsetfilecon_raw(const char *, const char *)
  defined as 'extern "C"'

replcon.cc: int lsetfilecon_raw(const char *, security_context_t)

Therefore the later one was treated as a C++ symbol - which
cannot be compared to NULL.  I tested this with a minimalistic
prototype implementation: the correct function is picked up.

The patch is against the current HEAD of the master from
git://anonscm.debian.org/selinux/setools.git
commit a3ab84b35efd9c42641d53ec2236ad01f7411df7

Kind regards

Andre

-- System Information:
Debian Release: jessie/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.14-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages setools depends on:
ii  libbz2-1.0    1.0.6-7
ii  libc6         2.19-7
ii  libgcc1       1:4.9.1-4
ii  libqpol1      3.3.8-3
ii  libselinux1   2.3-1
ii  libsqlite3-0  3.8.5-2
ii  libstdc++6    4.9.1-4
ii  libxml2       2.9.1+dfsg1-4

setools recommends no packages.

Versions of packages setools suggests:
pn  setools-gui  <none>

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setools-fix-lsetfilecon_raw-prototype.patch
Type: text/x-diff
Size: 1502 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/selinux-devel/attachments/20140810/52a7d2fd/attachment.patch>


More information about the SELinux-devel mailing list