batman_adv routing information is unavailable if debugfs is not mounted #9

Open
torsti opened this Issue Jun 9, 2012 · 1 comment

1 participant

@torsti

Information about the state of a batmesh is provided via /sys/kernel/debug/batman_adv/bat#/. The /sys/kernel/debug/ directory is not available by default, but has to be mounted via e.g. calling a debug function from batctl or explicitly mounting debugfs (mount -t debugfs debugfs /sys/kernel/debug/). Both options require root privileges.

@torsti torsti was assigned Jun 9, 2012
@torsti

Commit 7a74ff3 includes the function Debug_FS_Mounted in MeshAware.BATMAN_Advanced which can check for the problem and can be used to raise an exception if it is not mounted. MeshConfig will provide a Mount_Debug_FS procedure to mount debugfs. It will still require root or CAP_SYSADMIN privileges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment