security labels can contain any printable ASCII
This commit is contained in:
parent
dfd72b363c
commit
2e78a17eda
4
NEWS
4
NEWS
@ -1,3 +1,7 @@
|
|||||||
|
procps-3.2.4 --> procps-3.2.5
|
||||||
|
|
||||||
|
ps: security labels can contain any printable ASCII
|
||||||
|
|
||||||
procps-3.2.3 --> procps-3.2.4
|
procps-3.2.3 --> procps-3.2.4
|
||||||
|
|
||||||
support 64-bit MIPS with n32 binary
|
support 64-bit MIPS with n32 binary
|
||||||
|
@ -1096,10 +1096,10 @@ static int pr_context(char *restrict const outbuf, const proc_t *restrict const
|
|||||||
if(unlikely(num_read<=0)) goto fail;
|
if(unlikely(num_read<=0)) goto fail;
|
||||||
outbuf[num_read] = '\0';
|
outbuf[num_read] = '\0';
|
||||||
|
|
||||||
len = strspn(outbuf, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ:_0123456789/^");
|
len = 0;
|
||||||
if(!len) goto fail;
|
while(outbuf[len]>' ' && outbuf[len]<='~') len++;
|
||||||
outbuf[len] = '\0';
|
outbuf[len] = '\0';
|
||||||
return len;
|
if(len) return len;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
outbuf[0] = '-';
|
outbuf[0] = '-';
|
||||||
|
Loading…
Reference in New Issue
Block a user