{"id":6157,"date":"2023-05-05T09:27:59","date_gmt":"2023-05-05T06:27:59","guid":{"rendered":"https:\/\/skeletor.org.ua\/?p=6157"},"modified":"2024-03-07T15:33:00","modified_gmt":"2024-03-07T13:33:00","slug":"solaris-setgid-privilege","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=6157","title":{"rendered":"[Solaris] setgid privilege"},"content":{"rendered":"\n<p>\u0417\u0456\u0448\u0442\u043e\u0432\u0445\u043d\u0443\u0432\u0441\u044f \u043d\u0435\u0449\u043e\u0434\u0430\u0432\u043d\u043e \u0437 \u0442\u0438\u043c, \u0449\u043e \u0443 <strong>Solaris <\/strong>\u043d\u0435\u043c\u0430\u0454 <strong>&#8216;proc_setgid&#8217; privilege<\/strong>, \u044f\u043a\u0438\u0439, \u043d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434, \u0432\u0438\u043c\u0430\u0433\u0430\u0454 <strong>powerdns <\/strong>\u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0456, \u044f\u043a\u0449\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u0438 \u043d\u0435 \u0432\u0456\u0434 <strong>root&#8217;a<\/strong>. \u041f\u043e\u043c\u0438\u043b\u043a\u0430 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0430:<\/p>\n\n\n<pre>pdns_server[401190]: missing privilege \"proc_setid\" (euid = 0, syscall = \"setgid\") at setgid+0xcf<\/pre>\n\n\n<p>\u041a\u0430\u0436\u0435, \u0449\u043e \u043d\u0435\u043c\u0430\u0454 <strong>proc_setid<\/strong>, \u0430\u043b\u0435 \u0432\u043e\u043d\u043e \u0454, \u0430 \u0434\u0430\u043b\u0456 \u0432\u0436\u0435 \u0439\u0434\u0435 \u0443\u0442\u043e\u0447\u043d\u0435\u043d\u043d\u044f, \u0449\u043e \u0442\u0440\u0435\u0431\u0430 \u043d\u0435 <strong>setid<\/strong>, \u0430 \u0441\u0430\u043c\u0435 <strong>setgid<\/strong>, \u0430\u043b\u0435 \u0443 <strong>Solaris <\/strong>\u0446\u044c\u043e\u0433\u043e \u043d\u0435\u043c\u0430\u0454. \u0427\u043e\u043c\u0443? \u041d\u0435 \u0437\u043d\u0430\u044e\u0442\u044c \u043d\u0430\u0432\u0456\u0442\u044c \u0443 <strong>Solaris community<\/strong>. <strong>Workaround <\/strong>&#8211; \u0441\u0442\u0430\u0440\u0442\u0443\u0432\u0430\u0442\u0438 \u0441\u0435\u0440\u0432\u0456\u0441 \u0432\u0456\u0434 <strong>root&#8217;a<\/strong> \u0456 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438, \u0449\u043e\u0431 \u043d\u0435 \u0431\u0443\u043b\u043e \u044f\u0432\u043d\u043e\u0433\u043e \u043e\u0431\u043c\u0435\u0436\u0435\u043d\u043d\u044f \u043d\u0430 <strong>privileges <\/strong>\u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0456\u0441\u0443<\/p>\n\n\n\n<p>UPD. \u0417\u0433\u0456\u0434\u043d\u043e <a rel=\"noreferrer noopener\" href=\"https:\/\/docs.oracle.com\/cd\/E88353_01\/html\/E37841\/setgid-2.html\" target=\"_blank\">man<\/a> \u0442\u043e \u0442\u0438\u043f\u0443 \u043f\u043e\u0432\u0438\u043d\u043d\u043e \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 <strong>syscall <\/strong>\u0432\u0456\u0434 <strong>set_uid<\/strong>, \u0430\u043b\u0435 \u043d\u0435 \u0445\u043e\u0447\u0435.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0456\u0448\u0442\u043e\u0432\u0445\u043d\u0443\u0432\u0441\u044f \u043d\u0435\u0449\u043e\u0434\u0430\u0432\u043d\u043e \u0437 \u0442\u0438\u043c, \u0449\u043e \u0443 Solaris \u043d\u0435\u043c\u0430\u0454 &#8216;proc_setgid&#8217; privilege, \u044f\u043a\u0438\u0439, \u043d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434, \u0432\u0438\u043c\u0430\u0433\u0430\u0454 powerdns \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0456, \u044f\u043a\u0449\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u0438 \u043d\u0435 \u0432\u0456\u0434 root&#8217;a. \u041f\u043e\u043c\u0438\u043b\u043a\u0430 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0430: pdns_server[401190]: missing privilege &#8220;proc_setid&#8221; (euid = 0, syscall = &#8220;setgid&#8221;) at setgid+0xcf \u041a\u0430\u0436\u0435, \u0449\u043e \u043d\u0435\u043c\u0430\u0454 proc_setid, \u0430\u043b\u0435 \u0432\u043e\u043d\u043e \u0454, \u0430 \u0434\u0430\u043b\u0456 \u0432\u0436\u0435 \u0439\u0434\u0435 \u0443\u0442\u043e\u0447\u043d\u0435\u043d\u043d\u044f, \u0449\u043e \u0442\u0440\u0435\u0431\u0430 \u043d\u0435 setid, \u0430 \u0441\u0430\u043c\u0435 setgid, \u0430\u043b\u0435 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,24],"tags":[],"class_list":["post-6157","post","type-post","status-publish","format-standard","hentry","category-others","category-solaris"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/6157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6157"}],"version-history":[{"count":3,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/6157\/revisions"}],"predecessor-version":[{"id":6349,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/6157\/revisions\/6349"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}