From 0199dc9d8c15c7abbffdb9644cbebd2acb6f8a67 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 22 Nov 2019 09:40:46 +0100 Subject: sys/linux: add a NEED comment --- sys/linux/smack.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/linux/smack.txt b/sys/linux/smack.txt index 78f05c14f..8ae5474e1 100644 --- a/sys/linux/smack.txt +++ b/sys/linux/smack.txt @@ -82,7 +82,9 @@ smackfs_cipso_category { smackfs_cipso { label smack_labelnoz sp0 const[' ', int8] -# int8 because of SMK_DIGITLEN == 4 +# NEED: format specifiers with the given len ("%04d"). +# Kernel expects level to take exactly 4 (SMK_DIGITLEN) chars. +# This affects lots of other fmt's in this file too. level fmt[dec, int8[0:SMACK_CIPSO_MAXLEVEL]] sp1 const[' ', int8] num fmt[dec, len[cats]] -- cgit mrf-deployment