00-mac-spoof.rules 687 Bytes
Newer Older
Tails developers's avatar
Tails developers committed
1
# Note: ATTR{type}=="1" means ethernet (ARPHDR_ETHER, see Linux'
2
# sources, beginning of include/linux/if_arp.h)
3
4
5
6
7
8

# Disable MAC spoofing for the following devices
# iPhone tethering ethernet over USB
SUBSYSTEM=="net", ACTION=="add", ATTR{type}=="1", DRIVERS=="ipheth", GOTO="mac_spoof_ignore"

# Perform MAC spoofing otherwise
9
SUBSYSTEM=="net", ACTION=="add", ATTR{type}=="1", RUN+="/usr/local/lib/tails-spoof-mac $name"
10
11
12
13
14
15
SUBSYSTEM=="net", ACTION=="add", ATTR{type}=="1", GOTO="mac_spoof_end"

LABEL="mac_spoof_ignore"
SUBSYSTEM=="net", ACTION=="add", ATTR{type}=="1", RUN+="/usr/bin/logger -t spoof-mac \"MAC spoofing discarded by udev rule for $name ($driver)\""

LABEL="mac_spoof_end"