pythongdbkernel

Python Class not loaded MNT_NOSUID


I am attempting to connect the GDB to my compiled linux kernel. I changed the .config file and enabled debugging. I input into gdb the following.

source vmlinux-gdb.py

The result is

Python Exception <class 'NameError'>: name 'MNT_NOSUID' is not defined Error occurred in Python: name 'MNT_NOSUID' is not defined

What is MNT_NOSUID and in what python package can it be found?


Solution

  • MNT_NOSUID is a flag meaning this filesystem should be mounted subject to constraint the that setuid and setgid programs referenced through the mount should not be executable.

    MNT_NOSUID being not defined (more correctly, being unparseable) is a known issue, see the correspondence at LKML: https://lkml.org/lkml/2025/5/31/383