Re: Removing Mandatory Locks

Rodrigo Campos
2021-08-18T09:37:11Z

On Tue, Aug 17, 2021 at 6:49 PM Eric W. Biederman <ebiederm@xmission.com> wrote:
>
> Matthew Wilcox <willy@infradead.org> 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