Re: [PATCH 2/3] vircommand: Utilize close_range()

2023-06-28 Thread Daniel P . Berrangé
On Wed, Jun 21, 2023 at 04:40:10PM +0100, Daniel P. Berrangé wrote: > On Wed, Jun 21, 2023 at 04:09:10PM +0200, Michal Privoznik wrote: > > As of commit v5.9-rc1~160^2~3 the Linux kernel has close_range() > > syscall, which closes not just one FD but whole range. In glibc > > this is exposed by aut

Re: [PATCH 2/3] vircommand: Utilize close_range()

2023-06-21 Thread Daniel P . Berrangé
On Wed, Jun 21, 2023 at 04:09:10PM +0200, Michal Privoznik wrote: > As of commit v5.9-rc1~160^2~3 the Linux kernel has close_range() > syscall, which closes not just one FD but whole range. In glibc > this is exposed by automatically generated wrapper of the same > name. In musl, this is not expose

[PATCH 2/3] vircommand: Utilize close_range()

2023-06-21 Thread Michal Privoznik
As of commit v5.9-rc1~160^2~3 the Linux kernel has close_range() syscall, which closes not just one FD but whole range. In glibc this is exposed by automatically generated wrapper of the same name. In musl, this is not exposed, yet, but we can call the syscall() directly. In either case, we have to