diff options
author | 2020-12-21 17:52:14 +0100 | |
---|---|---|
committer | 2020-12-21 17:52:14 +0100 | |
commit | 5b3dfc3af0d76a1f1e5d0bac32ae8afa51f05897 (patch) | |
tree | 566e0e158df1b4e51ad892b7117208376f1adb04 /src | |
parent | minor cleanup, cosmetics (diff) | |
download | firejail-5b3dfc3af0d76a1f1e5d0bac32ae8afa51f05897.tar.gz firejail-5b3dfc3af0d76a1f1e5d0bac32ae8afa51f05897.tar.zst firejail-5b3dfc3af0d76a1f1e5d0bac32ae8afa51f05897.zip |
add mac multicast address check to profile_check_line
issue #3784
related commit 4bc92b8fd0a5c22c7d4c6f9323378501c60ff149
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/profile.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c index ff8b47102..4172c96f7 100644 --- a/src/firejail/profile.c +++ b/src/firejail/profile.c | |||
@@ -745,6 +745,12 @@ int profile_check_line(char *ptr, int lineno, const char *fname) { | |||
745 | fprintf(stderr, "Error: invalid MAC address\n"); | 745 | fprintf(stderr, "Error: invalid MAC address\n"); |
746 | exit(1); | 746 | exit(1); |
747 | } | 747 | } |
748 | |||
749 | // check multicast address | ||
750 | if (br->macsandbox[0] & 1) { | ||
751 | fprintf(stderr, "Error: invalid MAC address (multicast)\n"); | ||
752 | exit(1); | ||
753 | } | ||
748 | } | 754 | } |
749 | else | 755 | else |
750 | warning_feature_disabled("networking"); | 756 | warning_feature_disabled("networking"); |