[RFC PATCH v2 3/8] landlock: Fix inconsistency of errors for TCP actions

Mikhail Ivanov ivanov.mikhail1 at huawei-partners.com
Wed Nov 6 09:27:25 UTC 2024


On 10/17/2024 3:48 PM, Tetsuo Handa wrote:
> On 2024/10/17 20:04, Mikhail Ivanov wrote:
>> +#endif /* IS_ENABLED(CONFIG_IPV6) */
>> +	default:
>> +		WARN_ON_ONCE(0);
> 
> WARN_ON_ONCE(0) is pointless.

thanks! will be fixed

> 
>> +		return -EACCES;
>> +	}
> 



More information about the Linux-security-module-archive mailing list