SELinuxProject / selinux

This is the upstream repository for the Security Enhanced Linux (SELinux) userland libraries and tools. The software provided by this project complements the SELinux features integrated into the Linux kernel and is used by Linux distributions. All bugs and patches should be submitted to selinux@vger.kernel.org
Other
1.35k stars 360 forks source link

mcstrans secolor context length limit too low #333

Open r-barnett opened 2 years ago

r-barnett commented 2 years ago

The 255 character limit on the context strings in the secolor.conf file causes mcstrans color translations to fail for legitimate contexts.

For example, the following line results in an error during mcstrans start up and a color translation of all #000000 for this context:

range s0:c100,c102,c104,c106,c108,c110,c112,c114,c116,c118,c120,c122,c124,c126,c128,c130,c132,c134,c136,c138,c140,c142,c144,c146,c148,c150,c152,c154,c156,c158,c160,c162,c164,c166,c168,c170,c172,c174,c176,c178,c180,c182,c184,c186,c188,c190,c192,c194,c196,c198,c200 = #000000 #f5e8be

This is obviously a contrived example, but it's within reasonable expectations for our systems.

Can this limit be removed or increased substantially?