Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian tweaks #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Debian tweaks #7

wants to merge 1 commit into from

Conversation

rotty
Copy link
Contributor

@rotty rotty commented Jun 5, 2016

This fixes a dependency issue regarding iproute, and brings the user creation and removal more in line with Debian best practices. A quicktun system group is now available for use with private key files.

@rotty
Copy link
Contributor Author

rotty commented Jun 5, 2016

Note that this pull request should be handled before #6, as the latter needs some rework after/when this one is merged.

@rotty rotty force-pushed the debian-tweaks branch 4 times, most recently from 18e9652 to e197929 Compare June 6, 2016 20:04
Adjust dependencies:

  - Don't depend on coreutils, which is marked essential (see Debian
    Policy 3.5, "Dependencies").

  - Fixup dependency on iproute/iproute2 -- according to the iproute2
    Debian changelog, iproute acquired tuntap support in version
    20100519-1, and iproute2 had it from the start.

A iproute with "tuntap" support should be in Debian distributions since
at least wheezy. Since we can reasonably depend on that nowadays,
simplify the ifupdown support scripts to use "ip tuntap", instead of
conditionally using "openvpn --mktun" or "tunctl" from uml-utilities.

Adapt handling of the quicktun user (see
<https://wiki.debian.org/AccountHandlingInMaintainerScripts> for the
guidelines followed):

  - Make use of adduser instead of useradd, which allows to drop the
    conditional, and will respect sysadmin settings in
    /etc/adduser.conf.

  - Create a system group as well. This allows for the private key file
    to be owned by "root:quicktun", and have "-rw-r-----" as
    permissions, allowing read-only access to the quicktun daemon, and
    no-one else. Users of existing packages will have that group created
    and the "quicktun" user's GID changed to it.

  - Remove quicktun user and group on purge instead of on remove, and in
    postrm instead of prerm. The removal will only happen if the "deluser"
    command is present. The removal on purge should unproblematic, as
    quicktun itself does not create any files (which then would be owned
    by that user).
@rotty
Copy link
Contributor Author

rotty commented Jun 18, 2016

I've updated this PR to only include the packaging improvements, i.e., removed the "Handle ifupdown support in script" commit. I'd still like to follow up on the latter in a separate PR, but without duplicating the list of setting names into the ifupdown script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant