Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
semanage: handle getprotobyname() failure case
At least on Debian, /etc/protocols, which is used by socket.getprotobyname() to resolve protocols to names, does not contain an entry for "ipv4". In that case, set the protocol number used by audit logs for "ipv4" to a fixed value. To ensure audit log compatibility, let's use the same numeric value as Fedora: 4, which is actually understood by kernel as IP over IP. Signed-off-by: Topi Miettinen <toiwoton@gmail.com> Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com>
- Loading branch information
1 parent
b3d8b99
commit da3bbc3
Showing
1 changed file
with
19 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters