mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-04-24 15:37:23 +00:00
86 lines
4.7 KiB
HTML
86 lines
4.7 KiB
HTML
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
<title>netctl-gui secutiry notes</title>
|
|
<style type="text/css">
|
|
|
|
</style>
|
|
<h1>netctl-gui security notes</h1>
|
|
<h3>Project version : @PROJECT_VERSION@</h3>
|
|
<ol>
|
|
<li><a href="#description">Description</a></li>
|
|
<li><a href="#arch">Architecture</a></li>
|
|
<li><a href="#kde">KDE components security</a></li>
|
|
<li><a href="#kde">Graphical interface security</a></li>
|
|
<li><a href="#library">Library security</a></li>
|
|
<li><a href="#helper">Helper security</a></li>
|
|
<ul><li><a href="#helper-suid">Run helper with SUID bit</a></li></ul>
|
|
<li><a href="#links">External links</a></li>
|
|
</ol>
|
|
</head>
|
|
<body>
|
|
|
|
<h2><a href="#description" class="anchor" name="description"></a>Description</h2>
|
|
<p></p>
|
|
|
|
<h2><a href="#arch" class="anchor" name="arch"></a>Architecture</h2>
|
|
<img src="architecture.png" alt="architecture" align="middle">
|
|
|
|
<h2><a href="#kde" class="anchor" name="kde"></a>KDE components security</h2>
|
|
<p>There are two netctl-based commands which are run from the DataEngine</p>
|
|
<ul>
|
|
<li><code><cmd> list</code></li>
|
|
<li><code>netctl is-enabled <profile></code></li>
|
|
</ul>
|
|
<p>Both of them do not require any additional privileges normally. Also DataEngine has two other command which will be run from; they should define external IP. According to the idea that user can set <i>any</i> command to run, this module is not secure. But running commands will not do more than user can do from console himself.</p>
|
|
|
|
<p>The widget gets information from DataEngine, thus it does not require any additional permissions to show information. But netctl calls with root privileges are used to control netctl. In this case used commands are</p>
|
|
<ul>
|
|
<li><code>netctl enable <profile></code></li>
|
|
<li><code>netctl disable <profile></code></li>
|
|
<li><code>netctl restart <profile></code></li>
|
|
<li><code>netctl start <profile></code></li>
|
|
<li><code>netctl stop <profile></code></li>
|
|
<li><code>netctl switch-to <profile></code></li>
|
|
<li><code>netctl-auto switch-to <profile></code></li>
|
|
</ul>
|
|
<p>All netctl-based commands <i>requires</i> root privileges and <code>sudo</code> (and any other alternatives) is used normally as prefix to the commands. The netctl-auto command does not require additional permissions.</p>
|
|
|
|
<p>The other way is to use DBus communication with <a href="#helper">the helper</a>. In this case user should have rights to start the helper.</p>
|
|
|
|
<h2><a href="#gui" class="anchor" name="gui"></a>Graphical interface security</h2>
|
|
<p>Graphical interface may interact with netctl over <a href="#helper">DBus (the helper)</a> and over <a href="#library">the library</a>. Please refer to their notes to any additional information. If user uses helper he should have permissions to run it.</p>
|
|
|
|
<h2><a href="#gui" class="anchor" name="gui"></a>Library security</h2>
|
|
<p>According to <a href="#arch">the scheme</a> library gets information from netctl and can control it. Also it provides some additional functions such as a profile creation and removal and access to wpa_supplicant functions. Some function does not require additional permissions, but other ones do it. All dynamic arguments including profile names and paths are in double quotes to avoid white spaces problem. The functions which requires root privileges are:</p>
|
|
<ul>
|
|
<li>Netctl control module</li>
|
|
<ul>
|
|
<li><code>netctl start|stop|restart|switch-to|enable|disable <profile></code>. They are commands which provide a general control to netctl.</li>
|
|
<li><code>systemctl start|restart|enable <netctl-auto@service></code>. They are commands which provide ability to control netctl-auto systemd service.</li>
|
|
</ul>
|
|
<li>Netctl profiles module</li>
|
|
<ul>
|
|
<li>Copying of a temporary profile from home directory to netctl profiles directory. <code>cp</code> command is used for it.</li>
|
|
<li>Removal of a profile. <code>rm</code> command is used for it.</li>
|
|
</ul>
|
|
<li>WiFi module</li>
|
|
<ul>
|
|
<li>This module require root privileges to start wpa_supplicant only. For the futher interaction user must be in <code>CTRL_GROUP</code>.</li>
|
|
</ul>
|
|
</ul>
|
|
|
|
<h2><a href="#links" class="anchor" name="links"></a>External links</h2>
|
|
<ul>
|
|
<li><a href="http://arcanis.name/projects/netctl-gui/">Homepage</a></li>
|
|
<li><a href="https://github.com/arcan1s/netctl-gui">Repository</a></li>
|
|
<li><a href="https://github.com/arcan1s/netctl-gui/issues">Bugtracker</a></li>
|
|
</ul>
|
|
|
|
<p align="center" style="font-size: 70%">
|
|
© 2014-@CURRENT_YEAR@ <a href="mailto:@PROJECT_CONTACT@">@PROJECT_AUTHOR@</a><br>
|
|
This software is licensed under @PROJECT_LICENSE@
|
|
</p>
|
|
|
|
</body>
|
|
</html> |