Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libselinux: LFS support should be enabled by default #366

Open
samsam2310 opened this issue Aug 25, 2022 · 2 comments
Open

libselinux: LFS support should be enabled by default #366

samsam2310 opened this issue Aug 25, 2022 · 2 comments

Comments

@samsam2310
Copy link

There is a old mail thread discussed about the LFS support (i.e. _FILE_OFFSET_BITS=64). It was rejected because fts.h didn't support it.

After this glibc commit, fts.h now supports LFS. I think we could consider enable the flags by default in libselinux so they can work on files greather than 2.1GB on 32bit platform.

@thesamesam
Copy link

thesamesam commented Dec 8, 2023

The use of lstat64 at

ret = lstat64(fl->file, &sb);
currently causes issues for musl-1.2.4 too.

Switching to LFS and switching to lstat would solve two problems for the price of one.

See also https://bugs.gentoo.org/905711.

@thesamesam
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants