Browse Source

su-exec: Added su-exec 0.2 - Execute programs as different user

tc-work-musl-mess
Nagy Károly Gábriel 8 years ago
parent
commit
91e733a1d4
3 changed files with 70 additions and 0 deletions
  1. +9
    -0
      base/su-exec/su-exec.cache
  2. +29
    -0
      base/su-exec/su-exec.conf
  3. +32
    -0
      base/su-exec/su-exec.desc

+ 9
- 0
base/su-exec/su-exec.cache

@ -0,0 +1,9 @@
[TIMESTAMP] 1463477851 Tue May 17 12:37:31 2016
[BUILDTIME] 0 (5)
[SIZE] 0.03 MB, 8 files
[DEP] binutils
[DEP] coreutils
[DEP] gcc
[DEP] musl

+ 29
- 0
base/su-exec/su-exec.conf

@ -0,0 +1,29 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../su-exec/su-exec.conf
# Copyright (C) 2016 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
configscript=
makeinstopt=
make_install() {
cp -a su-exec $root$sbindir
chmod +x $root$sbindir/su-exec
if ! pkginstalled sudo; then
echo -e "#!/bin/sh \n/usr/sbin/su-exec root \$@" > $root$sbindir/sudo
chmod +x $root$sbindir/sudo
chmod u+s $root$sbindir/su-exec
fi
}
hook_add postmake 5 "make_install"

+ 32
- 0
base/su-exec/su-exec.desc

@ -0,0 +1,32 @@
[COPY] --- SDE-COPYRIGHT-NOTE-BEGIN ---
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch.
[COPY]
[COPY] Filename: package/.../su-exec/su-exec.desc
[COPY] Copyright (C) 2016 The OpenSDE Project
[COPY]
[COPY] More information can be found in the files COPYING and README.
[COPY]
[COPY] This program is free software; you can redistribute it and/or modify
[COPY] it under the terms of the GNU General Public License as published by
[COPY] the Free Software Foundation; version 2 of the License. A copy of the
[COPY] GNU General Public License can be found in the file COPYING.
[COPY] --- SDE-COPYRIGHT-NOTE-END ---
[I] Execute programs as different user
[T] su-exec is a simple program that can switch user
[T] and group id, setgroups and exec.
[U] https://github.com/ncopa/su-exec/
[A] Natanael Copa <ncopa@alpinelinux.org>
[M] Nagy Károly Gábriel <nagy.karoly@opensde.org>
[C] extra/shell
[L] MIT
[S] Stable
[V] 0.2
[P] X -----5---9 174.100
[D] 0 su-exec-0.2.tar.gz !https://github.com/ncopa/su-exec/archive/v0.2.tar.gz

Loading…
Cancel
Save