History log of /freebsd-13.1/sys/compat/linux/linux_file.c (Results 1 – 25 of 204)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/12.4.0, release/13.1.0, release/12.3.0
# 6bddc311 07-Jun-2021 Edward Tomasz Napierala <[email protected]>

linux: improve FUSE support

This fixes a number of AppImages; tested with
scribus-1.5.6.1-linux-x86_64.AppImage.

Reported By: @probonopd
Reviewed By: asomers, emaste
Sponsored By: EPSRC
Differentia

linux: improve FUSE support

This fixes a number of AppImages; tested with
scribus-1.5.6.1-linux-x86_64.AppImage.

Reported By: @probonopd
Reviewed By: asomers, emaste
Sponsored By: EPSRC
Differential Revision: https://reviews.freebsd.org/D30606

(cherry picked from commit 128a1db806daac088a79314cee060b8a204e8481)

show more ...


# 1e44a4ea 16-Apr-2021 Edward Tomasz Napierala <[email protected]>

linux: support AT_EMPTY_PATH flag in fchownat(2)

This fixes rsyslog package installation scripts in Bionic.

Reviewed By: kib
Sponsored By: EPSRC
Differential Revision: https://reviews.freebsd.org/D

linux: support AT_EMPTY_PATH flag in fchownat(2)

This fixes rsyslog package installation scripts in Bionic.

Reviewed By: kib
Sponsored By: EPSRC
Differential Revision: https://reviews.freebsd.org/D29108

(cherry picked from commit e47823b8312b7cb61c5c8cb8e1eb981994e3a0b4)

show more ...


# da51ef55 15-Apr-2021 Edward Tomasz Napierala <[email protected]>

linux: implement O_PATH

Reviewed By: kib
Sponsored By: EPSRC
Differential Revision: https://reviews.freebsd.org/D29773

(cherry picked from commit 1663120ae452fe3783c74ce40522caf0e2327608)


Revision tags: release/13.0.0
# 7d3310c4 14-Jan-2021 Edward Tomasz Napierala <[email protected]>

linux: remove spurious newline.

Sponsored by: The FreeBSD Foundation


# de774e42 17-Nov-2020 Conrad Meyer <[email protected]>

linux(4): Implement name_to_handle_at(), open_by_handle_at()

They are similar to our getfhat(2) and fhopen(2) syscalls.

Differential Revision: https://reviews.freebsd.org/D27111


# e3b1c847 09-Nov-2020 Edward Tomasz Napierala <[email protected]>

Make it possible to mount a fuse filesystem, such as squashfuse,
from a Linux binary. Should come handy for AppImages.

Reviewed by: asomers
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
D

Make it possible to mount a fuse filesystem, such as squashfuse,
from a Linux binary. Should come handy for AppImages.

Reviewed by: asomers
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D26959

show more ...


# fe76bef4 26-Oct-2020 Mateusz Guzik <[email protected]>

linux: silence renameat2 flags warning

Hogs the console while building the Linux kernel in a Ubuntu Focal jail.


# 1024de70 26-Oct-2020 Mateusz Guzik <[email protected]>

linux: add missing conversions for compat.linux.use_emul_path handling


Revision tags: release/12.2.0
# 1a180032 01-Sep-2020 Mateusz Guzik <[email protected]>

compat: clean up empty lines in .c and .h files


# a125ed50 18-Aug-2020 Mateusz Guzik <[email protected]>

linux: add sysctl compat.linux.use_emul_path

This is a step towards facilitating jails with only Linux binaries.
Supporting emul_path adds path lookups which are completely spurious
if the binary at

linux: add sysctl compat.linux.use_emul_path

This is a step towards facilitating jails with only Linux binaries.
Supporting emul_path adds path lookups which are completely spurious
if the binary at hand runs in a Linux-based root directory.

It defaults to on (== current behavior).

make -C /root/linux-5.3-rc8 -s -j 1 bzImage:

use_emul_path=1: 101.65s user 68.68s system 100% cpu 2:49.62 total
use_emul_path=0: 101.41s user 64.32s system 100% cpu 2:45.02 total

show more ...


# d5c5b4b3 18-Jul-2020 Edward Tomasz Napierala <[email protected]>

Make linux fallocate(2) return EOPNOTSUPP, not ENOSYS, on unsupported mode,
as documented in the man page.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation


# 8d1d0171 18-Jul-2020 Edward Tomasz Napierala <[email protected]>

Add a trivial linux(4) splice(2) implementation, which simply
returns EINVAL. Fixes grep (grep-3.1-2build1).

PR: kern/218699
Reported by: avos
Reviewed by: emaste
MFC after: 2 weeks
Sponsored by:

Add a trivial linux(4) splice(2) implementation, which simply
returns EINVAL. Fixes grep (grep-3.1-2build1).

PR: kern/218699
Reported by: avos
Reviewed by: emaste
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D25636

show more ...


# 423a033b 10-Jul-2020 Kyle Evans <[email protected]>

memfd_create: turn on SHM_GROW_ON_WRITE

memfd_create fds will no longer require an ftruncate(2) to set the size;
they'll grow (to the extent that it's possible) upon write(2)-like syscalls.

Reviewe

memfd_create: turn on SHM_GROW_ON_WRITE

memfd_create fds will no longer require an ftruncate(2) to set the size;
they'll grow (to the extent that it's possible) upon write(2)-like syscalls.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D25502

show more ...


# 5403f186 29-Jun-2020 Kyle Evans <[email protected]>

linuxolator: implement memfd_create syscall

This effectively mirrors our libc implementation, but with minor fudging --
name needs to be copied in from userspace, so we just copy it straight into
st

linuxolator: implement memfd_create syscall

This effectively mirrors our libc implementation, but with minor fudging --
name needs to be copied in from userspace, so we just copy it straight into
stack-allocated memfd_name into the correct position rather than allocating
memory that needs to be cleaned up.

The sealing-related fcntl(2) commands, F_GET_SEALS and F_ADD_SEALS, have
also been implemented now that we support them.

Note that this implementation is still not quite at feature parity w.r.t.
the actual Linux version; some caveats, from my foggy memory:

- Need to implement SHM_GROW_ON_WRITE, default for memfd (in progress)
- LTP wants the memfd name exposed to fdescfs
- Linux allows open() of an fdescfs fd with O_TRUNC to truncate after dup.
(?)

Interested parties can install and run LTP from ports (devel/linux-ltp) to
confirm any fixes.

PR: 240874
Reviewed by: kib, trasz
Differential Revision: https://reviews.freebsd.org/D21845

show more ...


# 34ff0c0e 12-Jun-2020 Edward Tomasz Napierala <[email protected]>

Make linux(4) warn about unsupported fcntls.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D25231


Revision tags: release/11.4.0
# bc8e2810 11-Jun-2020 Edward Tomasz Napierala <[email protected]>

Replace LINUX_FASYNC with LINUX_O_ASYNC; no functional changes.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D25218


# b3fb13eb 24-Jan-2020 Edward Tomasz Napierala <[email protected]>

Add kern_unmount() and use in Linuxulator. No functional changes.

Reviewed by: kib
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D22646


# 149afbf3 21-Jan-2020 Mark Johnston <[email protected]>

Fix 64-bit syscall argument fetching in 32-bit Linux syscall handlers.

The Linux32 system call argument fetcher places each argument (passed in
registers in the Linux x86 system call convention) int

Fix 64-bit syscall argument fetching in 32-bit Linux syscall handlers.

The Linux32 system call argument fetcher places each argument (passed in
registers in the Linux x86 system call convention) into an entry in the
generic system call args array. Each member of this array is 8 bytes
wide, so this approach is broken for system calls that take off_t
arguments.

Fix the problem by splitting l_loff_t arguments in the 32-bit system
call descriptions, the same as we do for FreeBSD32. Change entry points
to handle this using the PAIR32TO64 macro.

Move linux_ftruncate64() into compat/linux.

PR: 243155
Reported by: Alex S <[email protected]>
Reviewed by: kib (previous version)
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D23210

show more ...


# 66632fe7 20-Jan-2020 Edward Tomasz Napierala <[email protected]>

Properly translate MNT_FORCE flag to Linux umount2(2). Previously
it worked by accident.

MFC after: 2 weeks
Sponsored by: DARPA


# 54666dff 30-Dec-2019 Pawel Biernacki <[email protected]>

linux(4): implement copy_file_range(2)

copy_file_range(2) is implemented natively since r350315, make it available
for Linux binaries too.

Reviewed by: kib (mentor), trasz (previous version)
Approv

linux(4): implement copy_file_range(2)

copy_file_range(2) is implemented natively since r350315, make it available
for Linux binaries too.

Reviewed by: kib (mentor), trasz (previous version)
Approved by: kib (mentor)
Differential Revision: https://reviews.freebsd.org/D22959

show more ...


# 135b7238 28-Dec-2019 Edward Tomasz Napierala <[email protected]>

Make linux mount(2) tolerate NULL 'from' argument, and fix flag
handling.

This should unbreak access04, acct01, chmod06, creat06,
and fchmod06 LTP tests.

MFC after: 2 weeks
Sponsored by: The FreeBS

Make linux mount(2) tolerate NULL 'from' argument, and fix flag
handling.

This should unbreak access04, acct01, chmod06, creat06,
and fchmod06 LTP tests.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

show more ...


# 518cce02 16-Dec-2019 Edward Tomasz Napierala <[email protected]>

Don't use K&R definitions. No functional changes.

Reported by: kib
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation


# cf69fe66 14-Dec-2019 Edward Tomasz Napierala <[email protected]>

Add sync_file_range(2) implementation to linux(4); it's a thin wrapper
over the usual fsync(2).

This silences some warnings when running "apt-get upgrade".

Reviewed by: brooks, emaste
MFC after: 2

Add sync_file_range(2) implementation to linux(4); it's a thin wrapper
over the usual fsync(2).

This silences some warnings when running "apt-get upgrade".

Reviewed by: brooks, emaste
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D22371

show more ...


# 4de1818b 20-Nov-2019 Mateusz Guzik <[email protected]>

linux: avoid overhead of P_CONTROLT checks if possible

Sponsored by: The FreeBSD Foundation


# dfe91e5e 18-Nov-2019 Edward Tomasz Napierala <[email protected]>

Make linux(4) open(2)/openat(2) return ELOOP instead of EMLINK,
when being passed O_NOFOLLOW. This fixes LTP testcase openat02:5.

Reviewed by: emaste
MFC after: 2 weeks
Sponsored by: The FreeBSD Fo

Make linux(4) open(2)/openat(2) return ELOOP instead of EMLINK,
when being passed O_NOFOLLOW. This fixes LTP testcase openat02:5.

Reviewed by: emaste
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D22384

show more ...


123456789