You are not logged in.
Pages: 1
Hi,
I've made a PKGBUILD for dazuko, a kernel module enabling applications to control file access on a system. It enables KlamAV to act as an "on access" anti-virus scanner.
For kernels 2.6 kernels only.
Since its a kernel modules, it will depend on your kernel. If you boot another kernel version or it was built with a different config file the module won't be able to load. Thats why the name of the package will reflect the kernel version you use. On the actual kernel I'm using, running "makepkg" gives me a "dazuko-2.6.11.5-vanilla-custom-c3-2.0.6-1.pkg.tar.gz" package.
Another note, you will NEED to compile your kernel with Security features on. Heres my config:
Security options --->
[*] Enable access key retention support │ │
│ │ [ ] Enable the /proc/keys file by which all keys may be viewed │ │
│ │ [*] Enable different security models │ │
│ │ [*] Socket and Networking Security Hooks │ │
│ │ <M> Default Linux Capabilities │ │
│ │ <M> Root Plug Support │ │
│ │ <M> BSD Secure Levels │ │
│ │ [ ] NSA SELinux Support
Good luck.
PKGBUILD
pkgname=dazuko
pkgver=2.0.6
pkgrel=1
pkgdesc="Dazuko aims to be a cross-platform device driver that allows applications to control file access on a system. By installing the driver, your system will be able to support file access control applications that are based on Dazuko. As this project becomes more popular and more applications choose Dazuko for their file access needs, it is hoped that this driver will become a common component of most systems."
url="http://www.dazuko.org/"
source=(http://www.dazuko.org/files/$pkgname-$pkgver.tar.gz)
install=dazuko.install
md5sums=('844498651d22ddd76bea4104bf7c3e43')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure
make || return 1
mkdir -p $startdir/pkg/lib/modules/`uname -r`/kernel/security
install -D -m644 dazuko.ko $startdir/pkg/lib/modules/`uname -r`/kernel/security/dazuko.ko
pkgname=$pkgname-`uname -r`
}
dazuko.install
post_install() {
echo Loading the kernel modules...
modprobe commoncap
insmod /lib/modules/`uname -r`/kernel/security/dazuko.ko
echo Creating nodes...
mknod -m 600 /dev/dazuko c `grep dazuko /proc/devices | sed "s/ .*//"` 0
}
post_upgrade() {
/bin/true
}
pre_remove() {
rmmod dazuko
}
op=$1
shift
$op $*
Offline
Pages: 1