{"id":117,"date":"2024-06-06T22:52:28","date_gmt":"2024-06-06T14:52:28","guid":{"rendered":"https:\/\/code.lingapi.top\/?p=117"},"modified":"2024-06-06T22:52:28","modified_gmt":"2024-06-06T14:52:28","slug":"%e5%9c%a8linux%e5%86%85%e6%a0%b8%e6%80%81%e9%9a%90%e8%97%8f%e7%94%a8%e6%88%b7%e7%a9%ba%e9%97%b4%e8%bf%9b%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/code.lingapi.top\/?p=117","title":{"rendered":"\u5728Linux\u5185\u6838\u6001\u9690\u85cf\u7528\u6237\u7a7a\u95f4\u8fdb\u7a0b"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">\u60c5\u666f\u5bfc\u5165<\/h1>\n\n\n\n<p>\u5728Linux\u4e2d\uff0c\u4e00\u5207\u7686\u6587\u4ef6\u3002\u9690\u85cf\u8fdb\u7a0b\u548c\u9690\u85cf\u6587\u4ef6\u7684\u539f\u7406\u662f\u4e00\u6837\u7684\u3002<\/p>\n\n\n\n<p>\u6bcf\u4e00\u4e2a\u7528\u6237\u7a7a\u95f4\u8fdb\u7a0b\uff0c\u90fd\u4f1a\u5728\/proc\u4e0b\u751f\u6210\u4e00\u4e2a\u4ee5pid\u4f5c\u4e3a\u540d\u79f0\u7684\u76ee\u5f55\uff0c\u8fdb\u7a0b\u7684\u5404\u9879\u4fe1\u606f\u653e\u7f6e\u5728\u8be5\u76ee\u5f55\u4e2d\u3002top\u7b49\u547d\u4ee4\u53ef\u4ee5\u901a\u8fc7\u904d\u5386\/proc\u76ee\u5f55\u6765\u5f97\u5230\u7cfb\u7edf\u4e2d\u6b63\u5728\u8fd0\u884c\u7684\u8fdb\u7a0b\u4fe1\u606f\u3002<\/p>\n\n\n\n<p>\u6240\u4ee5\uff0c\u9690\u85cf\u4e00\u4e2a\u8fdb\u7a0b\uff0c\u53ea\u9700\u8981\u79fb\u9664\u5b83\u5728proc\u4e2d\u7684\u6761\u76ee\u5373\u53ef\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u901a\u8fc7\u7f51\u7edc\u641c\u7d22\u53ef\u4ee5\u77e5\u9053\uff0cproc\u6587\u4ef6\u7cfb\u7edf\u4e0d\u662f\u4e00\u4e2a\u771f\u5b9e\u5b58\u5728\u7684\u6587\u4ef6\u7cfb\u7edf\uff0c\u5b83\u5b58\u5728\u4e8e\u5185\u5b58\u4e0a\uff0c\u4ec5\u4ec5\u53ea\u662f\u201c\u6302\u8f7d\u201d\u5230\u4e86\u6587\u4ef6\u7cfb\u7edf\u4e0a\uff0cproc\u53ea\u662f\u5b83\u7684\u5165\u53e3\u70b9\u3002<\/p>\n\n\n\n<p>\u800c\u6df1\u5165\u9605\u8bfb\u4e86Linux\u5185\u6838\u5173\u4e8e\u6b64\u90e8\u5206\u7684\u5b9e\u73b0\u540e\uff0c\u5176\u5b9eproc\u6839\u672c\u65e0\u6240\u8c13\u6302\u8f7d\u7684\u6982\u5ff5\u3002\u5b83\u7b26\u5408\u91cf\u5b50\u7279\u6027\uff0c\u4ec5\u5728\u4f60\u89c2\u5bdf\u5b83\u7684\u65f6\u5019\u5b83\u624d\u5b58\u5728\u3002\u5f53\u4f60\u901a\u8fc7opendir\u6253\u5f00proc\u6587\u4ef6\u7cfb\u7edf\u65f6\uff0c\u5185\u6838\u4f1a\u4e3a\u4f60\u751f\u6210\u5b83\u3002\u5f53\u4f60\u5173\u95ed\u5b83\u65f6\uff0c\u5b83\u7684\u4e00\u5207\u90fd\u7070\u98de\u70df\u706d\u3002<\/p>\n\n\n\n<p>\u6240\u4ee5\u65e0\u6240\u8c13\u201c\u79fb\u9664\u201dproc\u4e2d\u7684\u6761\u76ee\uff0c\u53ea\u9700\u8981\u5728\u5185\u6838\u751f\u6210proc\u65f6\uff0c\u8fc7\u6ee4\u6389\u4e00\u4e9b\u5185\u5bb9\uff0c\u5373\u53ef\u8fbe\u5230\u9690\u85cf\u7684\u76ee\u7684\u3002\u4e3a\u4e86\u907f\u514d\u5bf9\u5185\u6838\u6e90\u4ee3\u7801\u7684\u4fee\u6539\uff0c\u6211\u4f7f\u7528\u5185\u6838\u6a21\u5757\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Kprobe<\/h1>\n\n\n\n<p>\u9996\u5148\u9700\u8981\u4e86\u89e3\u4e00\u4e2a\u6982\u5ff5\uff0ckprobe\u3002<\/p>\n\n\n\n<p>kprobe\u662fLinux\u5185\u6838\u7684\u4e00\u4e2a\u91cd\u8981\u7279\u6027\uff0c\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684\u5185\u6838\u8c03\u8bd5\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u5728\u8fd0\u884c\u7684\u5185\u6838\u4e2d\u52a8\u6001\u63d2\u5165\u63a2\u6d4b\u70b9\uff0c\u6267\u884c\u4f60\u9884\u5b9a\u4e49\u7684\u64cd\u4f5c\u3002\u5e76\u4e14\uff0c\u5b83\u53ef\u4ee5\u5411\u5185\u6838\u4e2d\u51e0\u4e4e\u5168\u90e8\u7684\u51fd\u6570\u6dfb\u52a0\u63a2\u6d4b\u70b9\uff08\u88abstatic\u4fee\u9970\u7684\u51fd\u6570\u9664\u5916\uff09\u3002<\/p>\n\n\n\n<p>\u901a\u8fc7\u9605\u8bfb\u5185\u6838\u6e90\u4ee3\u7801\uff0c\u53ef\u4ee5\u5f97\u77e5\u5bf9proc\u5185\u5bb9\u7684\u586b\u5145\u5728proc_pid_readdir[fs\/proc\/base.c]\u4e2d\u3002\u5982\u4e0b\u662f\u5b83\u7684\u5b9e\u73b0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* for the \/proc\/ directory itself, after non-process stuff has been done *\/\nint proc_pid_readdir(struct file *file, struct dir_context *ctx)\n{\n\tstruct tgid_iter iter;\n\tstruct proc_fs_info *fs_info = proc_sb_info(file_inode(file)->i_sb);\n\tstruct pid_namespace *ns = proc_pid_ns(file_inode(file)->i_sb);\n\tloff_t pos = ctx->pos;\n\n\tif (pos >= PID_MAX_LIMIT + TGID_OFFSET)\n\t\treturn 0;\n\n\tif (pos == TGID_OFFSET - 2) {\n\t\tstruct inode *inode = d_inode(fs_info->proc_self);\n\t\tif (!dir_emit(ctx, \"self\", 4, inode->i_ino, DT_LNK))\n\t\t\treturn 0;\n\t\tctx->pos = pos = pos + 1;\n\t}\n\tif (pos == TGID_OFFSET - 1) {\n\t\tstruct inode *inode = d_inode(fs_info->proc_thread_self);\n\t\tif (!dir_emit(ctx, \"thread-self\", 11, inode->i_ino, DT_LNK))\n\t\t\treturn 0;\n\t\tctx->pos = pos = pos + 1;\n\t}\n\titer.tgid = pos - TGID_OFFSET;\n\titer.task = NULL;\n\tfor (iter = next_tgid(ns, iter);\n\t     iter.task;\n\t     iter.tgid += 1, iter = next_tgid(ns, iter)) {\n\t\tchar name&#91;10 + 1];\n\t\tunsigned int len;\n\n\t\tcond_resched();\n\t\tif (!has_pid_permissions(fs_info, iter.task, HIDEPID_INVISIBLE))\n\t\t\tcontinue;\n\n\t\tlen = snprintf(name, sizeof(name), \"%u\", iter.tgid);\n\t\tctx->pos = iter.tgid + TGID_OFFSET;\n\t\tif (!proc_fill_cache(file, ctx, name, len,\n\t\t\t\t     proc_pid_instantiate, iter.task, NULL)) {\n\t\t\tput_task_struct(iter.task);\n\t\t\treturn 0;\n\t\t}\n\t}\n\tctx->pos = PID_MAX_LIMIT + TGID_OFFSET;\n\treturn 0;\n}<\/code><\/pre>\n\n\n\n<p>\u5b83\u7684\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662fdir_context\u7c7b\u578b\uff0c\u7528\u6765\u5411\u8c03\u7528\u8005\u586b\u5145\u76ee\u5f55\u5185\u5bb9\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/*\n * This is the \"filldir\" function type, used by readdir() to let\n * the kernel specify what kind of dirent layout it wants to have.\n * This allows the kernel to read directories into kernel space or\n * to have different dirent layouts depending on the binary type.\n *\/\nstruct dir_context;\ntypedef int (*filldir_t)(struct dir_context *, const char *, int, loff_t, u64,\n\t\t\t unsigned);\n\nstruct dir_context {\n\tfilldir_t actor;\n\tloff_t pos;\n};<\/code><\/pre>\n\n\n\n<p>dir_context\u4e2d\u6709\u4e00\u4e2aactor\u6210\u5458\uff0c\u662f\u4e00\u4e2a\u56de\u8c03\u51fd\u6570\u7684\u6307\u9488\uff0c\u5728proc_pid_readdir\u4e2d\uff0c\u5c06\u8c03\u7528\u6b64\u51fd\u6570\u6307\u9488\u6765\u5411\u8c03\u7528\u65b9\u4f20\u9012\u76ee\u5f55\u9879\u3002<\/p>\n\n\n\n<p>proc_pid_readdir\u5f00\u59cb\u5904\u586b\u5145\u4e86self\u548cthread-self\u4e24\u4e2a\u76ee\u5f55\u9879\uff0c\u5206\u522b\u662f\u6307\u5411\u5f53\u524d\u8fdb\u7a0b\u4ee5\u53ca\u6307\u5411\u5f53\u524d\u7ebf\u7a0b\u7684proc\u76ee\u5f55\u9879\u3002\u7531\u6b64\u4e5f\u53ef\u4ee5\u7406\u89e3proc\u7684\u9b54\u6cd5\u4e86\u3002<\/p>\n\n\n\n<p>\u6211\u4eec\u7684\u4e3b\u8981\u5173\u6ce8\u70b9\u5728\u5b83\u7684for\u5faa\u73af\u4e2d\u3002<\/p>\n\n\n\n<p>\u5728\u5faa\u73af\u4e2d\uff0cproc_pid_readdir\u904d\u5386\u4e86\u5185\u6838\u4e2d\u7684\u6bcf\u4e00\u4e2a\u7528\u6237\u7a7a\u95f4\u8fdb\u7a0b\uff0c\u5e76\u6839\u636e\u6743\u9650\u8bbe\u7f6e\uff0c\u51b3\u5b9a\u662f\u5426\u653e\u5165dir_context\u4e2d\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>if (!has_pid_permissions(fs_info, iter.task, HIDEPID_INVISIBLE))\n        continue;<\/code><\/pre>\n\n\n\n<p>\u65e0\u6cd5\u901a\u8fc7hook has_pid_permissions\u6765\u8df3\u8fc7\u7279\u5b9a\u8fdb\u7a0b\uff0c\u56e0\u4e3ahas_pid_permissions\u88abstatic\u4fee\u9970\uff0c\u5b83\u6ca1\u6709\u5bfc\u51fa\u7b26\u53f7\u3002<\/p>\n\n\n\n<p>\u5728has_pid_permissions\u4e4b\u540e\uff0c\u9700\u8981\u5173\u6ce8\u7684\u51fd\u6570\u53ea\u6709\u4e24\u4e2a\uff0cproc_fill_cache\u4ee5\u53caput_task_struct\u3002<\/p>\n\n\n\n<p>proc_fill_cache\u7528\u4e8e\u586b\u5145\/proc\u4e0b\u5173\u4e8e\u7279\u5b9a\u8fdb\u7a0b\u7684\u7f13\u5b58\u4fe1\u606f\uff0c\u800cpus_task_struct\u88abstatic\u4fee\u9970\u3002<\/p>\n\n\n\n<p>\u8003\u8651\u4e4b\u540e\uff0c\u6211\u51b3\u5b9a\u963b\u6b62proc_pid_readdir\u5411\u8c03\u7528\u65b9\u6dfb\u52a0\u76ee\u5f55\u9879\uff0c\u5373hook dir_context\u7684actor\u51fd\u6570\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u5b9e\u73b0<\/h1>\n\n\n\n<p>\u9996\u5148\u7f16\u5199\u4e00\u4e2a\u5185\u6838\u6a21\u5757<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#include &lt;linux\/kernel.h>\n#include &lt;linux\/module.h>\n#include &lt;linux\/kprobes.h>\n\nstatic int __init lsx_init(void){\n    \n}\n\nstatic void __exit lsx_exit(void){\n\n}\n\n\nmodule_init(lsx_init);\nmodule_exit(lsx_exit);\n\nMODULE_LICENSE(\"GPL\");\nMODULE_AUTHOR(\"ling\");\nMODULE_DESCRIPTION(\"Memory Hook Module\");<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><\/p>\n<cite>\u672c\u6587\u4e0d\u4f1a\u8be6\u7ec6\u4ecb\u7ecd\u5185\u6838\u6a21\u5757\u7684\u6280\u672f\u7ec6\u8282\uff0c\u8fd9\u662f\u5f88\u57fa\u7840\u7684\u6280\u80fd\u3002<\/cite><\/blockquote>\n\n\n\n<p>\u9996\u5148\u6211\u4eec\u9700\u8981\u4e00\u4e2a\u4f4d\u56fe\u6765\u7d22\u5f15\u9700\u8981\u9690\u85cf\u7684\u8fdb\u7a0b\u3002\u6211\u4eec\u4e0d\u80fd\u76f4\u63a5\u4fee\u6539task_status\u7ed3\u6784\u4f53\uff0c\u56e0\u4e3a\u6211\u4eec\u8981\u907f\u514d\u76f4\u63a5\u4fee\u6539\u5185\u6838\u6e90\u4ee3\u7801\uff0c\u8fd9\u4e5f\u662f\u4e3a\u4ec0\u4e48\u6211\u8981\u7f16\u5199\u5185\u6838\u6a21\u5757\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Bitmap hide_process_bitmap;\n\n\/\/\/\u8bbe\u7f6e\u4f4d\nvoid process_set_bit(Bitmap * bitmap,int pos){\n    bitmap->data&#91;pos \/ (sizeof(u32) * 8)] |= (1 &lt;&lt; (pos % (sizeof(u32 ) * 8)));\n}\n\n\/\/\/\u6e05\u9664\u4f4d\nvoid process_clear_bit(Bitmap *bitmap,int pos){\n    bitmap->data&#91;pos \/ (sizeof(u32) * 8)] &amp;= ~(1 &lt;&lt;(pos %(sizeof(u32) * 8)));\n}\n\n\/\/\/\u6d4b\u8bd5\u4f4d\nint process_test_bit(Bitmap *bitmap,int pos){\n    return bitmap->data&#91;pos \/ (sizeof(u32) * 8)] &amp; (1 &lt;&lt; (pos % (sizeof(u32) * 8)));\n}<\/code><\/pre>\n\n\n\n<p>\u7136\u540e\uff0c\u4f7f\u7528kprobe\u6765\u5728proc_pid_readdir\u7684\u5165\u53e3\u70b9\u57cb\u4e00\u4e2a\u94a9\u5b50\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>typedef int(*actor_t)(struct dir_context *,const char *name,int namlen,loff_t offset,u64 ino,unsigned d_type);\n\n\/\/\u539f\u59cbactor\u51fd\u6570\nactor_t original_actor = NULL;\n\n\/\/\/ \u66ff\u4ee3dir_context\u4e2dactor\u7684\u51fd\u6570\n\/\/\/ \u6267\u884c\u4e00\u4e9b\u68c0\u67e5\u540e\uff0c\u5c06\u4f4d\u56fe\u4e2d\u4fdd\u5b58\u7684\u9700\u8981\u9690\u85cf\u7684\u8fdb\u7a0b\uff0c\u963b\u6b62\u5bf9\u539f\u59cbactor\u7684\u8c03\u7528\uff0c\u8fbe\u5230\u8fc7\u6ee4\u7684\u76ee\u7684\u3002\nstatic int custom_actor(struct dir_context *ctx,const char *name,int namlen,loff_t offset,u64 ino,unsigned d_type){\n    int pid;\n    int ret = kstrtoint(name,10,&amp;pid);\n    if(ret != 0){\n        pr_info(LOG_INFO \"actor name to int error : %s\",name);\n        return original_actor(ctx,name,namlen,offset,ino,d_type);\n    }\n    if(process_test_bit(&amp;hide_process_bitmap,pid)){\n        pr_info(LOG_INFO \"prevent actor add pid : %s\",name);\n        return 0;\n    }\n    return original_actor(ctx,name,namlen,offset,ino,d_type);\n}\n\n\/\/\/ \u5728proc_pid_readdir\u4e4b\u524d\u88ab\u6267\u884c\n\/\/\/ \u5728\u8fd9\u91cc\u83b7\u53d6proc_pid_readdir\u7684\u7b2c\u4e8c\u4e2a\u53c2\u6570\uff0c\u4e5f\u5c31\u662fdir_context\u7684\u6307\u9488\n\/\/\/ \u5e76\u5728\u4fdd\u5b58dir_context\u4e2d\u539f\u59cb\u7684actor\u4e4b\u540e\uff0c\u4f7f\u7528custom_actor\u66ff\u6362\u5b83\n\/\/\/ \u4f7fproc_pid_readdir\u5bf9actor\u7684\u8c03\u7528\u4ea4\u7531\u6211\u4eec\u6765\u6267\u884c\u3002\nstatic int handler_pre(struct kprobe *p,struct pt_regs *regs){\n    struct dir_context *ctx = (struct dir_context*)regs->regs&#91;1];\n    original_actor = ctx->actor;\n    ctx->actor = custom_actor;\n    pr_info(LOG_INFO \"hook success!\");\n    return 0;\n}\n\nstatic struct kprobe kp = {\n    .pre_handler = handler_pre,\n    .symbol_name = \"proc_pid_readdir\",\n};\n\nstatic int __init lsx_init(void){\n    int ret = register_kprobe(&amp;kp);\n    if(ret &lt; 0){\n        pr_info(\"&#91;Proc Call] kprobe proc_pid_readdir error! code : %d\",ret);\n        return;\n    }\n}<\/code><\/pre>\n\n\n\n<p>\u81f3\u6b64\uff0c\u9690\u85cf\u529f\u80fd\u5df2\u7ecf\u5b9e\u73b0\uff0c\u4f46\u662f\u5728\u8fdb\u7a0b\u9000\u51fa\u540e\uff0c\u6a21\u5757\u4e0d\u4f1a\u6e05\u7406\u8be5\u8fdb\u7a0b\u7684\u8bbe\u7f6e\u3002\u5982\u679c\u88ab\u9690\u85cf\u7684\u8fdb\u7a0b\u9000\u51fa\u4e86\uff0c\u800c\u5b83\u7684pid\u88ab\u5206\u914d\u7ed9\u4e86\u53e6\u4e00\u4e2a\u65b0\u8fdb\u7a0b\u6765\u4f7f\u7528\uff0c\u90a3\u4e48\u5c31\u4f1a\u9519\u8bef\u7684\u9690\u85cf\u539f\u672c\u4e0d\u56e0\u8be5\u9690\u85cf\u7684\u8fdb\u7a0b\u3002<\/p>\n\n\n\n<p>Linux\u5185\u6838\u4e2d\u5e76\u6ca1\u6709\u8fdb\u7a0b\u9000\u51fa\u7684\u4e8b\u4ef6\uff0c\u4f46\u662f\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u521a\u521a\u7684\u6280\u672f\u6765\u81ea\u5df1\u5b9e\u73b0\u4e00\u4e2a\u3002<\/p>\n\n\n\n<p>\u9605\u8bfb\u6e90\u7801\u53ef\u77e5\uff0c\u6240\u6709\u8fdb\u7a0b\u8981\u9000\u51fa\uff0c\u6700\u540e\u90fd\u4f1a\u6267\u884cdo_exit[kernel\/exit.c]\u7cfb\u7edf\u8c03\u7528\u3002\u6240\u4ee5\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528kprobe\u5728do_exit\u4e2d\u57cb\u4e0b\u4e00\u4e2a\u94a9\u5b50\uff0c\u6765\u76d1\u542c\u8fdb\u7a0b\u9000\u51fa\u4e8b\u4ef6\u3002<\/p>\n\n\n\n<p>\u5b83\u7684\u7b7e\u540d\u5982\u4e0b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>void __noreturn do_exit(long code);<\/code><\/pre>\n\n\n\n<p>\u6211\u4eec\u4e0d\u9700\u8981\u5173\u5fc3\u5b83\u5185\u90e8\u7684\u5b9e\u73b0\uff0c\u4e5f\u4e0d\u9700\u8981\u5173\u5fc3\u5b83\u7684\u53c2\u6570\u5217\u8868\uff0c\u6211\u4eec\u4ec5\u4ec5\u53ea\u9700\u8981\u5728do_exit\u7684\u5165\u53e3\u70b9\u57cb\u4e0b\u4e00\u4e2a\u94a9\u5b50\uff0c\u7136\u540e\u5c31\u53ef\u4ee5\u901a\u8fc7current\u5b8f\u83b7\u5f97\u5f53\u524d\u8fdb\u7a0b\u7684task_status\u7ed3\u6784\u4f53\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u76d1\u542c\u8fdb\u7a0b\u9000\u51fa\u4e8b\u4ef6\uff0c\u5e76\u6e05\u7406\u4f4d\u56fe\nstatic int process_exit_notifier_pre(struct kprobe *p,struct pt_regs *regs) {\n    struct task_struct *task = current;\n    if(process_test_bit(&amp;hide_process_bitmap,task->pid)){\n        process_clear_bit(&amp;hide_process_bitmap,task->pid);\n        pr_info(LOG_INFO \"process %d exit , so unhide\",task->pid);\n    }\n    return 0;\n}\n\nstatic struct kprobe process_exit_kp = {\n    .pre_handler = process_exit_notifier_pre,\n    .symbol_name = \"do_exit\",\n};\n\nvoid __init hide_process_init(void){\n    int ret = register_kprobe(&amp;process_exit_kp);\n    if(ret &lt; 0){\n        pr_info(LOG_INFO \"kprobe process_exit_notifier_ptr error! code : %d\",ret);\n    }\n}<\/code><\/pre>\n\n\n\n<p>\u81f3\u6b64\uff0c\u5728Linux\u5185\u6838\u4e2d\u9690\u85cf\u7528\u6237\u7a7a\u95f4\u8fdb\u7a0b\u7684\u76ee\u7684\u5df2\u7ecf\u8fbe\u6210\u3002\u67e5\u770bproc\u76ee\u5f55\uff0c\u9700\u8981\u9690\u85cf\u7684\u8fdb\u7a0b\u5df2\u7ecf\u6d88\u5931\u3002<\/p>\n\n\n\n<p>\u4e0d\u8fc7\uff0c\u672c\u6587\u7701\u7565\u4e86\u8bbe\u7f6e\u9700\u8981\u9690\u85cf\u7684\u8fdb\u7a0b\u7684\u7ec6\u8282\uff0c\u8fd9\u4e2a\u9700\u8981\u81ea\u884c\u5b9e\u73b0\uff0c\u672c\u6587\u4ec5\u4ecb\u7ecd\u9690\u85cf\u8fdb\u7a0b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u60c5\u666f\u5bfc\u5165 \u5728Linux\u4e2d\uff0c\u4e00\u5207\u7686\u6587\u4ef6\u3002\u9690\u85cf\u8fdb\u7a0b\u548c\u9690\u85cf\u6587\u4ef6\u7684\u539f\u7406\u662f\u4e00\u6837\u7684\u3002 \u6bcf\u4e00\u4e2a\u7528\u6237\u7a7a\u95f4\u8fdb\u7a0b\uff0c\u90fd\u4f1a\u5728\/proc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,3],"tags":[],"class_list":["post-117","post","type-post","status-publish","format-standard","hentry","category-linux","category-3"],"_links":{"self":[{"href":"https:\/\/code.lingapi.top\/index.php?rest_route=\/wp\/v2\/posts\/117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/code.lingapi.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/code.lingapi.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/code.lingapi.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/code.lingapi.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=117"}],"version-history":[{"count":8,"href":"https:\/\/code.lingapi.top\/index.php?rest_route=\/wp\/v2\/posts\/117\/revisions"}],"predecessor-version":[{"id":125,"href":"https:\/\/code.lingapi.top\/index.php?rest_route=\/wp\/v2\/posts\/117\/revisions\/125"}],"wp:attachment":[{"href":"https:\/\/code.lingapi.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code.lingapi.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code.lingapi.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}