Re: Removing Mandatory Locks

From: Rodrigo Campos
Date: Wed Aug 18 2021 - 05:36:02 EST


On Tue, Aug 17, 2021 at 6:49 PM Eric W. Biederman <ebiederm@xxxxxxxxxxxx> wrote:
>
> Matthew Wilcox <willy@xxxxxxxxxxxxx> writes:
>
> > On Fri, Aug 13, 2021 at 05:49:19PM -0700, Andy Lutomirski wrote:
> >> [0] we have mandatory locks, too. Sigh.
> >
> > I'd love to remove that. Perhaps we could try persuading more of the
> > distros to disable the CONFIG option first.
>
> Yes. The support is disabled in RHEL8.

If it helps, it seems to be enabled on the just released debian stable:
$ grep CONFIG_MANDATORY_FILE_LOCKING /boot/config-5.10.0-8-amd64
CONFIG_MANDATORY_FILE_LOCKING=y

Also the new 5.13 kernel in experimental has it too:
$ grep CONFIG_MANDATORY_FILE_LOCKING /boot/config-5.13.0-trunk-amd64
CONFIG_MANDATORY_FILE_LOCKING=y