~mathiaz/apparmor/ubuntu-mathiaz

« back to all changes in this revision

Viewing changes to tests/regression/subdomain/syscall.sh

  • Committer: Mathias Gug
  • Date: 2008-02-04 18:57:00 UTC
  • mfrom: (885.1.5 apparmor)
  • Revision ID: mathiaz@ubuntu.com-20080204185700-wwlyq0ksssxclv8w
Merge  ubuntu branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/bash
2
 
# $Id: syscall.sh 61 2006-05-19 18:32:14Z steve-beattie $
 
2
# $Id: syscall.sh 1058 2007-12-23 01:02:50Z jrjohansen $
3
3
 
4
4
#       Copyright (C) 2002-2005 Novell/SUSE
5
5
#
28
28
settest syscall_ptrace
29
29
 
30
30
# TEST A1
31
 
runchecktest "PTRACE with no profile" pass
 
31
runchecktest "PTRACE with no profile" pass sub
32
32
 
33
33
# TEST A2.  ptrace will fail
34
34
genprofile
35
35
 
36
 
runchecktest "PTRACE with confinement" fail
 
36
runchecktest "PTRACE with confinement" fail sub
37
37
 
38
38
##
39
39
## B. MKNOD
114
114
runchecktest "MKNOD sock (permissions)" fail s $mknod_file
115
115
 
116
116
##
117
 
## C. SYSCTL
 
117
## D. SETHOSTNAME
118
118
##
119
 
settest syscall_sysctl
120
 
 
121
 
# TEST C1
122
 
runchecktest "SYSCTL (no confinement)" pass
123
 
 
124
 
# TEST C2
125
 
genprofile
126
 
runchecktest "SYSCTL (confinement/read only)" pass ro
127
 
 
128
 
# TEST C3.  sysctl will fail
129
 
genprofile
130
 
runchecktest "SYSCTL (confinement/write access)" fail
131
 
 
132
 
# TEST C3.  sysctl write will pass with cap_sys_admin
133
 
genprofile cap:sys_admin
134
 
runchecktest "SYSCTL (confinement/write access/CAP_SYS_ADMIN)" pass
 
119
sh syscall_sysctl.sh
135
120
 
136
121
##
137
122
## D. SETHOSTNAME