Bug #3253
tsol headers mess
0%
Description
Function is_system_labeled() is defined in libc, but its prototype is in header from libtsol
(illumos-gate/usr/src/lib/libtsol/common/label.h)
illumos-gate/usr/src/lib/libc/port/gen/ucred.c includes tsol/label.h, but only for is_system_labeled() , which is in libc.
All other definitions are in kernel header sys/tsol/label.h.
So, tsol/label.h should not be a part of libtsol, and should only provide functions form libc.
For libtsol itself there should be a separated header (http://docs.oracle.com/cd/E19082-01/819-2242/libtsol-3lib/index.html)
Updated by Igor Pashev over 8 years ago
Same for usr/src/head/zone.h - it really needs only sys/tsol/label.h.
Updated by Igor Pashev over 8 years ago
Also illumos-gate/usr/src/lib/libnsl/rpc/svc_generic.c and
illumos-gate/usr/src/lib/libnsl/rpc/ti_opts.c
need only is_system_labeled() from libc