Skip to content

Commit ff55eb8

Browse files
committed
Revert "In auditctl, if rule only has perms, detect hardware to filter syscalls"
This reverts commit 2f329f4.
1 parent 691fe2a commit ff55eb8

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

ChangeLog

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
- Drop IPX header handling and require kernel 5.15 or later
77
- Resolved a number of FIXME's all over the code base
88
- Optimize ausearch/report log processing
9-
- In auditctl, if rule only has perms, detect hardware to filter syscalls
109
- In auparse normalizer, save pids as object attributes if its a process group
1110

1211
4.1.1

lib/libaudit.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,13 +1581,8 @@ static int audit_add_perm_syscalls(int perm, struct audit_rule_data *rule)
15811581
// arch declared, we leave the old behavior for backwards compatibility
15821582
// and just warn about performance.
15831583
if (_audit_elf == 0) {
1584-
int machine = audit_detect_machine();
1585-
if (machine < 0) {
1586-
audit_msg(LOG_INFO,
1587-
"perm used without an arch is slower");
1588-
return 0;
1589-
}
1590-
_audit_elf = audit_machine_to_elf(machine);
1584+
audit_msg(LOG_INFO, "perm used without an arch is slower");
1585+
return 0;
15911586
}
15921587

15931588
const int machine = audit_elf_to_machine(_audit_elf);

0 commit comments

Comments
 (0)