]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/manager.h
mount: use libmount to monitor mountinfo & utab 986/head
authorKarel Zak <kzak@redhat.com>
Mon, 1 Jun 2015 11:48:01 +0000 (13:48 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 14 Sep 2015 07:12:31 +0000 (09:12 +0200)
commitd379d44255469f03994832ab5821bf1b9034f4dc
tree27194587d38c4ea1333e67caed64202ecca9ec20
parent5669ef3644e3044036eeaaf6bb4b1a6a7e63130c
mount: use libmount to monitor mountinfo & utab

The current implementation directly monitor /proc/self/mountinfo and
/run/mount/utab files. It's really not optimal because utab file is
private libmount stuff without any official guaranteed semantic.

The libmount since v2.26 provides API to monitor mount kernel &
userspace changes and since v2.27 the monitor is usable for
non-root users too.

This patch replaces the current implementation with libmount based
solution.

Signed-off-by: Karel Zak <kzak@redhat.com>
Makefile.am
README
configure.ac
src/core/manager.c
src/core/manager.h
src/core/mount.c