Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32d5c31b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "security: Extend SELinux to support CAN sockets"

parents 0130e341 28b6f2d6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1230,6 +1230,8 @@ static inline u16 socket_type_to_security_class(int family, int type, int protoc
		return SECCLASS_KEY_SOCKET;
	case PF_APPLETALK:
		return SECCLASS_APPLETALK_SOCKET;
	case PF_CAN:
		return SECCLASS_CAN_SOCKET;
	}

	return SECCLASS_SOCKET;
+2 −0
Original line number Diff line number Diff line
@@ -152,5 +152,7 @@ struct security_class_mapping secclass_map[] = {
	{ "tun_socket",
	  { COMMON_SOCK_PERMS, "attach_queue", NULL } },
	{ "binder", { "impersonate", "call", "set_context_mgr", "transfer", NULL } },
	{ "can_socket",
	  { COMMON_SOCK_PERMS, NULL } },
	{ NULL }
  };