Commit dbbe0a2
apparmor: make label_match return a consistent value
[ Upstream commit a4c9efa ]
compound match is inconsistent in returning a state or an integer error
this is problemati if the error is ever used as a state in the state
machine
Fixes: f1bd904 ("apparmor: add the base fns() for domain labels")
Reviewed-by: Georgia Garcia <georgia.garcia@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 0563743 commit dbbe0a2
1 file changed
+9
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1288 | 1288 | | |
1289 | 1289 | | |
1290 | 1290 | | |
1291 | | - | |
| 1291 | + | |
1292 | 1292 | | |
1293 | 1293 | | |
1294 | 1294 | | |
| |||
1315 | 1315 | | |
1316 | 1316 | | |
1317 | 1317 | | |
1318 | | - | |
| 1318 | + | |
1319 | 1319 | | |
1320 | 1320 | | |
1321 | 1321 | | |
| |||
1327 | 1327 | | |
1328 | 1328 | | |
1329 | 1329 | | |
1330 | | - | |
1331 | | - | |
1332 | | - | |
1333 | | - | |
| 1330 | + | |
1334 | 1331 | | |
1335 | 1332 | | |
1336 | 1333 | | |
1337 | | - | |
| 1334 | + | |
1338 | 1335 | | |
1339 | 1336 | | |
1340 | 1337 | | |
| |||
1416 | 1413 | | |
1417 | 1414 | | |
1418 | 1415 | | |
1419 | | - | |
1420 | | - | |
1421 | | - | |
1422 | | - | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
1423 | 1420 | | |
| 1421 | + | |
1424 | 1422 | | |
1425 | 1423 | | |
1426 | 1424 | | |
| |||
0 commit comments