We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 209fee8 + 2d3d013 commit 5558395Copy full SHA for 5558395
iptables/match.go
@@ -1376,10 +1376,12 @@ func (mCG *MatchCGroup) LongArgs() []string {
1376
}
1377
1378
func (mCG *MatchCGroup) Parse(main []byte) (int, bool) {
1379
+ // For cgroup2 paths, must correctly process params like "cgroup ! /system.slice/systemd-journald.service MARK set 0xdeadbeef"
1380
+ //
1381
// 1. "^cgroup"
- // 2. "( (! )?([ -~]+))?" #1 #2 #3
1382
+ // 2. "( (! )?(/[^\s]+))?" #1 #2 #3
1383
// 3. "( (! )?([0-9]+))?" #4 #5 #6
- pattern := `^cgroup( (! )?([ -~]+))?( (! )?([0-9]+))? *`
1384
+ pattern := `^cgroup( (! )?(/[^\s]+))?( (! )?([0-9]+))? *`
1385
reg := regexp.MustCompile(pattern)
1386
matches := reg.FindSubmatch(main)
1387
if len(matches) != 7 {
0 commit comments