SELinuxProject / selinux

This is the upstream repository for the Security Enhanced Linux (SELinux) userland libraries and tools. The software provided by this project complements the SELinux features integrated into the Linux kernel and is used by Linux distributions. All bugs and patches should be submitted to selinux@vger.kernel.org
Other
1.35k stars 361 forks source link

libselinux: restore: drop the obsolete LSF transitional API. #401

Open rmsc opened 1 year ago

rmsc commented 1 year ago

The preferred way to enable LSF support on 32 bit systems is to define _FILE_OFFSET_BITS=64 when building selinux.

rmsc commented 1 year ago

Musl has recently deprecated the legacy API. From their Changelog:

"On the API level, the legacy "LFS64" ("large file support") interfaces, which were provided by macros remapping them to their standard names (#define stat64 stat and similar) have been deprecated and are no longer provided under the _GNU_SOURCE feature profile, only under explicit _LARGEFILE64_SOURCE. The latter will also be removed in a future version. Builds broken by this change can be fixed short-term by adding -D_LARGEFILE64_SOURCE to CFLAGS, but should be fixed to use the standard interfaces."