update kernel/extended/plimit/los_devicelimit.c.
Signed-off-by: hw_llm <liu.limin@huawei.com>
This commit is contained in:
parent
1064329c3a
commit
37d08b1d14
|
@ -488,7 +488,7 @@ UINT32 OsDevLimitWriteDeny(ProcLimitSet *plimit, const CHAR *buf, UINT32 size)
|
||||||
STATIC VOID DevLimitItemSetAccess(CHAR *acc, INT16 access)
|
STATIC VOID DevLimitItemSetAccess(CHAR *acc, INT16 access)
|
||||||
{
|
{
|
||||||
INT32 index = 0;
|
INT32 index = 0;
|
||||||
(VOID)memset_s(accArray, ACCLEN, 0, ACCLEN);
|
(VOID)memset_s(acc, ACCLEN, 0, ACCLEN);
|
||||||
if (access & DEVLIMIT_ACC_READ) {
|
if (access & DEVLIMIT_ACC_READ) {
|
||||||
acc[index++] = 'r';
|
acc[index++] = 'r';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue