Re: [PATCH] libselinux/restorecon: Include <selinux/label.h>

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

 



On Fri, Jul 26, 2024 at 1:24 PM Stephen Smalley
<stephen.smalley.work@xxxxxxxxx> wrote:
>
> On Fri, Jul 26, 2024 at 12:10 PM Vit Mojzis <vmojzis@xxxxxxxxxx> wrote:
> >
> > restorecon.h uses types defined in label.h, so it needs to include
> > label.h (or code using restorecon.h also needs to include label.h,
> > which is not practical).
> >
> > Fixes:
> >   $ make DESTDIR=~/obj install > make.out
> > In file included from semanage_store.c:39:
> > /home/sdsmall/obj/usr/include/selinux/restorecon.h:137:52: error:
> > ‘struct selabel_handle’ declared inside parameter list will not be
> > visible outside of this definition or declaration [-Werror]
> >   137 | extern void selinux_restorecon_set_sehandle(struct
> > selabel_handle *hndl);
> >       |                                                    ^~~~~~~~~~~~~~
> > cc1: all warnings being treated as errors
> > make[2]: *** [Makefile:111: semanage_store.o] Error 1
> > make[1]: *** [Makefile:15: install] Error 2
> > make: *** [Makefile:40: install] Error 1
> >
> > Signed-off-by: Vit Mojzis <vmojzis@xxxxxxxxxx>
>
> Acked-by: Stephen Smalley <stephen.smalley.work@xxxxxxxxx>

This patch has been applied to main.





[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux