您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

如何增加/ proc / pid / cmdline 4096字节的限制?

如何增加/ proc / pid / cmdline 4096字节的限制?

您无法动态更改,限制已在内核中硬编码为fs / proc / base.c中的PAGE_SIZE:

 274        int res = 0;
 275        unsigned int len;
 276        struct mm_struct *mm = get_task_mm(task);
 277        if (!mm)
 278                goto out;
 279        if (!mm->arg_end)
 280                goto out_mm;    /* Shh! No looking before we're done */
 281
 282        len = mm->arg_end - mm->arg_start;
 283 
 284        if (len > PAGE_SIZE)
 285                len = PAGE_SIZE;
 286 
 287        res = access_process_vm(task, mm->arg_start, buffer, len, 0);
其他 2022/1/1 18:15:07 有590人围观

撰写回答


你尚未登录,登录后可以

和开发者交流问题的细节

关注并接收问题和回答的更新提醒

参与内容的编辑和改进,让解决方法与时俱进

请先登录

推荐问题


联系我
置顶