Environment
- NoMount commit:
5e26349
- Kernel:
6.1.157-android14
- Main-profile UID:
10468
- Work-profile UID:
1210468
- Work profile: user
12
Configuration
The following rules are global. nm uid list is empty.
/proc/sys/net/ipv6/neigh/tun0
/proc/net/dev_snmp6/tun0
/sys/class/net/tun0
/proc/sys/net/ipv6/conf/tun0
/proc/sys/net/ipv4/conf/tun0
/proc/sys/net/ipv4/neigh/tun0
They were added using nm rule add --whiteout.
Steps to reproduce
- Start the VPN and create
tun0.
- Add the global whiteout rules listed above.
- Check the paths from the main and work profiles.
- Stop and restart the VPN so that
tun0 is destroyed and recreated.
- Add the global whiteout rules listed above.
- Check the same paths again.
Expected behavior
Global whiteout rules should hide the recreated tun0 entries consistently from both profiles.
Actual behavior
The result depends on the lifecycle of tun0 and the state of the procfs dentries.
Before restarting the VPN, several /proc entries remained visible despite the active whiteout rules. After restarting the VPN, most of them became hidden, but the behavior was still inconsistent.
For example:
- ABSENT:
/proc/sys/net/ipv4/neigh/tun0
- PRESENT:
/proc/net/dev_snmp6/tun0
The same behavior was observed without configuring any UID exclusions, so this does not appear to be related to UIDs above 10000.
The affected paths are dynamically generated procfs and network-interface entries. The equivalent /sys/class/net/tun0 whiteout behaves more consistently.
Additional information
/proc/net resolves through /proc/self/net, and the main and work-profile processes use different mount namespaces. This may be relevant, but the exact cause is not yet confirmed.
SUSFS add_sus_path_loop works fine.
Environment
5e263496.1.157-android1410468121046812Configuration
The following rules are global.
nm uid listis empty.They were added using
nm rule add --whiteout.Steps to reproduce
tun0.tun0is destroyed and recreated.Expected behavior
Global whiteout rules should hide the recreated
tun0entries consistently from both profiles.Actual behavior
The result depends on the lifecycle of
tun0and the state of the procfs dentries.Before restarting the VPN, several
/procentries remained visible despite the active whiteout rules. After restarting the VPN, most of them became hidden, but the behavior was still inconsistent.For example:
/proc/sys/net/ipv4/neigh/tun0/proc/net/dev_snmp6/tun0The same behavior was observed without configuring any UID exclusions, so this does not appear to be related to UIDs above 10000.
The affected paths are dynamically generated procfs and network-interface entries. The equivalent
/sys/class/net/tun0whiteout behaves more consistently.Additional information
/proc/netresolves through/proc/self/net, and the main and work-profile processes use different mount namespaces. This may be relevant, but the exact cause is not yet confirmed.SUSFS
add_sus_path_loopworks fine.