tests: remove xfs/057 and xfs/058

These two IRIX and XFS-specific tests were just placeholders which
didn't actually test anything.  It also seems they were meant to use the
acl_get and acl_test programs, but those weren't even being compiled.
Get rid of all this unused stuff.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
Eric Biggers
2017-07-20 21:22:04 -07:00
committed by Eryu Guan
parent 1ce90e01a7
commit 5cb1f2b055
7 changed files with 0 additions and 784 deletions
-148
View File
@@ -1,148 +0,0 @@
/*
* Copyright (c) 2001-2002 Silicon Graphics, Inc.
* All Rights Reserved.
*
* 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.
*
* This program is distributed in the hope that it would be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* Get an access or default acl on a file
* using IRIX semantics or Linux semantics
*/
#include <stdlib.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/acl.h>
#include <acl/libacl.h>
char *prog;
void usage(void)
{
fprintf(stderr, "usage: %s [-a] [-d] [-f] [-i] path\n"
"flags:\n"
" -a - get access ACL\n"
" -d - get default ACL\n"
" -f - get access ACL using file descriptor\n"
,prog);
}
int
main(int argc, char **argv)
{
int c;
char *file;
char *acl_text;
int getaccess = 0;
int getdefault = 0;
int usefd = 0;
int fd = -1;
acl_t acl;
prog = basename(argv[0]);
while ((c = getopt(argc, argv, "adf")) != -1) {
switch (c) {
case 'a':
getaccess = 1;
break;
case 'd':
getdefault = 1;
break;
case 'f':
usefd = 1;
break;
case '?':
usage();
return 1;
}
}
if (getdefault && usefd) {
fprintf(stderr, "%s: -f and -d are not compatible\n", prog);
return 1;
}
/* need path */
if (optind == argc) {
usage();
exit(1);
}
else {
file = argv[optind];
}
if (usefd) {
fd = open(file, O_RDONLY);
if (fd < 0) {
fprintf (stderr, "%s: error opening \"%s\": %s\n",
prog, file, strerror(errno));
usage();
return 1;
}
}
if (getaccess) {
if (usefd) {
acl = acl_get_fd(fd);
}
else {
acl = acl_get_file(file, ACL_TYPE_ACCESS);
}
if (acl == NULL) {
fprintf(stderr, "%s: error getting access ACL on \"%s\": %s\n",
prog, file, strerror(errno));
return 0;
}
acl_text = acl_to_any_text(acl, NULL, ',', TEXT_ABBREVIATE);
if (acl_text == NULL) {
fprintf(stderr, "%s: cannot get access ACL text on '%s': %s\n",
prog, file, strerror(errno));
return 0;
}
printf("%s: access %s", file, acl_text);
acl_free(acl_text);
acl_free(acl);
}
if (getdefault) {
acl = acl_get_file(file, ACL_TYPE_DEFAULT);
if (acl == NULL) {
fprintf(stderr, "%s: error getting default ACL on \"%s\": %s\n",
prog, file, strerror(errno));
return 0;
}
acl_text = acl_to_any_text(acl, NULL, ',', TEXT_ABBREVIATE);
if (acl_text == NULL) {
fprintf(stderr, "%s: cannot get default ACL text on '%s': %s\n",
prog, file, strerror(errno));
return 0;
}
printf("%s: default %s", file, acl_text);
acl_free(acl_text);
acl_free(acl);
}
return 0;
}
-264
View File
@@ -1,264 +0,0 @@
/*
* Copyright (c) 2001 Silicon Graphics, Inc.
* All Rights Reserved.
*
* 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.
*
* This program is distributed in the hope that it would be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* Test our various libacl functions.
* Use IRIX semantics or Linux semantics if pertinent.
*/
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <getopt.h>
#include <sys/acl.h>
char *prog;
int irixsemantics = 0;
void usage(void)
{
fprintf(stderr, "usage: %s\n"
" -i - use irix semantics\n"
,prog);
}
void
print_err(char *msg)
{
printf("%s: %s: %s\n", prog, msg, strerror(errno));
}
void
dump_ace(acl_entry_t ace)
{
printf("<tag:%d,id:%d,perm:%u>",
ace->ae_tag, ace->ae_id, ace->ae_perm);
}
void
dump_acl(acl_t acl)
{
int i;
printf("ACL[n=%d]: ", acl->acl_cnt);
for (i=0;i<acl->acl_cnt;i++) {
acl_entry_t ace = &acl->acl_entry[i];
printf("%d: ", i);
dump_ace(ace);
printf(" ");
}
printf("\n");
}
void
dump_acl_by_entry(acl_t acl)
{
int sts, i;
acl_entry_t ace;
printf("Get 1st entry on filled ACL\n");
sts = acl_get_entry(acl, ACL_FIRST_ENTRY, &ace);
printf("acl_get_entry -> %d\n", sts);
if (sts > 0) {
printf("1: "); dump_ace(ace); printf("\n");
}
for(i=2;i<=acl->acl_cnt+2;i++) {
printf("Get %dth entry on filled ACL\n", i);
sts = acl_get_entry(acl, ACL_NEXT_ENTRY, &ace);
printf("acl_get_entry -> %d\n", sts);
if (sts > 0) {
printf("%d: ",i); dump_ace(ace); printf("\n");
}
}
}
/*
* create a full acl with entries with known bogus values
*/
acl_t
create_filled_acl(void)
{
acl_t acl;
int i;
acl = acl_init(ACL_MAX_ENTRIES);
for(i=0;i<ACL_MAX_ENTRIES;i++) {
acl_entry_t ace = &acl->acl_entry[i];
ace->ae_tag = i;
ace->ae_id = i+1;
ace->ae_perm = i+2;
acl->acl_cnt++;
}
return acl;
}
void
test_acl_get_qualifier(void)
{
struct acl_entry ace;
uid_t *uidp;
printf("*** test out acl_get_qualifier ***\n");
/* simple ace */
ace.ae_tag = ACL_USER;
ace.ae_id = 1;
ace.ae_perm = 1;
/* make sure we can get uid and free it */
uidp = acl_get_qualifier(&ace);
printf("uid = %d\n", *uidp);
acl_free(uidp);
/* change to another valid tag with a qualifier */
ace.ae_tag = ACL_GROUP;
uidp = acl_get_qualifier(&ace);
printf("uid = %d\n", *uidp);
acl_free(uidp);
/* let's get some errors */
ace.ae_tag = ACL_USER_OBJ;
uidp = acl_get_qualifier(&ace);
if (uidp == NULL)
printf("uidp is NULL: %s\n", strerror(errno));
else
printf("Error: uidp is NOT NULL\n");
uidp = acl_get_qualifier(NULL);
if (uidp == NULL)
printf("uidp is NULL: %s\n", strerror(errno));
else
printf("Error: uidp is NOT NULL\n");
}
int
main(int argc, char **argv)
{
int c, i;
acl_t acl1, acl2, acl3;
acl_entry_t ace1;
char *p;
prog = argv[0];
for (p = prog; *p; p++) {
if (*p == '/') {
prog = p + 1;
}
}
while ((c = getopt(argc, argv, "i")) != -1) {
switch (c) {
case 'i':
irixsemantics = 1;
break;
case '?':
usage();
return 1;
}
}
if (irixsemantics) {
acl_set_compat(ACL_COMPAT_IRIXGET);
}
/* ---------------------------------------------- */
printf("*** test out creating an ACL ***\n");
printf("Test acl_init(ACL_MAX_ENTRIES+1)\n");
acl1 = acl_init(ACL_MAX_ENTRIES+1);
if (acl1 == NULL) {
print_err("acl_init(max+1)");
}
printf("Test acl_init(-1)\n");
acl1 = acl_init(-1);
if (acl1 == NULL) {
print_err("acl_init(-1)");
}
printf("Test acl_init(0)\n");
acl1 = acl_init(0);
if (acl1 == NULL) {
print_err("acl_init(0)");
}
printf("Test acl_create_entry(NULL, ...)\n");
if (acl_create_entry(NULL, &ace1) == -1) {
print_err("acl_create_entry(NULL,ace1)");
}
printf("Test acl_create_entry(..., NULL)\n");
if (acl_create_entry(&acl1, NULL) == -1) {
print_err("acl_create_entry(NULL,ace1)");
}
printf("Test acl_create_entry(acl1, ace1)\n");
acl1 = NULL;
if (acl_create_entry(&acl1, &ace1) == -1) {
print_err("acl_create_entry(*null,ace1)");
}
acl_free(acl1);
acl1 = acl_init(0);
for (i=0;i<=ACL_MAX_ENTRIES+1;i++) {
printf("%d: creating ace\n", i);
if (acl_create_entry(&acl1, &ace1) == -1) {
print_err("acl_create_entry");
}
dump_acl(acl1);
}
/* ---------------------------------------------- */
printf("*** test out getting ACEs ***\n");
dump_acl_by_entry(acl1);
printf("dump empty ACL\n");
acl2 = acl_init(0);
if (acl2 == NULL) {
print_err("acl_init(0)");
}
dump_acl_by_entry(acl2);
printf("fill an ACL with known bogus values\n");
acl3 = create_filled_acl();
dump_acl_by_entry(acl3);
/* ---------------------------------------------- */
printf("*** test out ACL to text for empty ACL***\n");
{
char *text;
ssize_t len;
acl_t empty_acl = acl_init(0);
text = acl_to_text(empty_acl, NULL);
printf("acl_to_text(empty_acl,NULL) -> \"%s\"\n", text);
text = acl_to_text(empty_acl, &len);
printf("acl_to_text(empty_acl,NULL) -> \"%s\", len = %u\n", text, len);
text = acl_to_text(NULL, NULL);
printf("acl_to_text(NULL,NULL) -> \"%s\"\n", text==NULL?"NULL":text);
}
/* NOTE: Other tests will test out the text for ACLs with ACEs.
* So don't have to test it here.
* It is simplest to choose ids not in /etc/passwd /etc/group
* which is done already in a script.
*/
test_acl_get_qualifier();
return 0;
}
-47
View File
@@ -1,47 +0,0 @@
#! /bin/bash
# FS QA Test No. 057
#
# Place holder for test 075. Test out the different acl_get semantics
#
#-----------------------------------------------------------------------
# Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved.
#
# 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.
#
# This program is distributed in the hope that it would be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
#-----------------------------------------------------------------------
#
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
here=`pwd`
tmp=/tmp/$$
status=1 # failure is the default!
trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
# get standard environment, filters and checks
. ./common/rc
. ./common/filter
_notrun "Place holder for IRIX test 057"
# real QA test starts here
_supported_fs xfs
_supported_os IRIX
# success, all done
status=0
exit
-34
View File
@@ -1,34 +0,0 @@
QA output created by 057
-rwxr-x-w- 0 0 file1
access, default, irix-semantics
file1: access irix-empty
file1: default irix-empty
access, default, linux-semantics
file1: access u::rwx,g::r-x,o::-w-
file1: default linux-empty
access, fd, irix-semantics
file1: access irix-empty
access, fd, linux-semantics
file1: access u::rwx,g::r-x,o::-w-
file1 [u::rwx,g::rw-,o::---,u:id1:r-x,g:id1:r--,m::rwx]
-rwxrwx--- 0 0 file1
access, default, irix-semantics
file1: access u::rwx,g::rw-,o::---,u:id1:r-x,g:id1:r--,m::rwx
file1: default irix-empty
access, default, linux-semantics
file1: access u::rwx,g::rw-,o::---,u:id1:r-x,g:id1:r--,m::rwx
file1: default linux-empty
access, fd, irix-semantics
file1: access u::rwx,g::rw-,o::---,u:id1:r-x,g:id1:r--,m::rwx
access, fd, linux-semantics
file1: access u::rwx,g::rw-,o::---,u:id1:r-x,g:id1:r--,m::rwx
-46
View File
@@ -1,46 +0,0 @@
#! /bin/bash
# FS QA Test No. 058
#
# Place holder test 068. Test some ACL API functions.
#
#-----------------------------------------------------------------------
# Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved.
#
# 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.
#
# This program is distributed in the hope that it would be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
#-----------------------------------------------------------------------
#
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
here=`pwd`
tmp=/tmp/$$
status=1 # failure is the default!
trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
# get standard environment, filters and checks
. ./common/rc
. ./common/filter
_notrun "Place holder for IRIX test 058"
# real QA test starts here
_supported_fs xfs
_supported_os IRIX
# success, all done
status=0
exit
-243
View File
@@ -1,243 +0,0 @@
QA output created by 058
*** test out creating an ACL ***
Test acl_init(ACL_MAX_ENTRIES+1)
acl_test: acl_init(max+1): Invalid argument
Test acl_init(-1)
acl_test: acl_init(-1): Invalid argument
Test acl_init(0)
Test acl_create_entry(NULL, ...)
acl_test: acl_create_entry(NULL,ace1): Invalid argument
Test acl_create_entry(..., NULL)
acl_test: acl_create_entry(NULL,ace1): Invalid argument
Test acl_create_entry(acl1, ace1)
acl_test: acl_create_entry(*null,ace1): Invalid argument
0: creating ace
ACL[n=1]: 0: <tag:0,id:-1,perm:0>
1: creating ace
ACL[n=2]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0>
2: creating ace
ACL[n=3]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0> 2: <tag:0,id:-1,perm:0>
3: creating ace
ACL[n=4]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0> 2: <tag:0,id:-1,perm:0> 3: <tag:0,id:-1,perm:0>
4: creating ace
ACL[n=5]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0> 2: <tag:0,id:-1,perm:0> 3: <tag:0,id:-1,perm:0> 4: <tag:0,id:-1,perm:0>
5: creating ace
ACL[n=6]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0> 2: <tag:0,id:-1,perm:0> 3: <tag:0,id:-1,perm:0> 4: <tag:0,id:-1,perm:0> 5: <tag:0,id:-1,perm:0>
6: creating ace
ACL[n=7]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0> 2: <tag:0,id:-1,perm:0> 3: <tag:0,id:-1,perm:0> 4: <tag:0,id:-1,perm:0> 5: <tag:0,id:-1,perm:0> 6: <tag:0,id:-1,perm:0>
7: creating ace
ACL[n=8]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0> 2: <tag:0,id:-1,perm:0> 3: <tag:0,id:-1,perm:0> 4: <tag:0,id:-1,perm:0> 5: <tag:0,id:-1,perm:0> 6: <tag:0,id:-1,perm:0> 7: <tag:0,id:-1,perm:0>
8: creating ace
ACL[n=9]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0> 2: <tag:0,id:-1,perm:0> 3: <tag:0,id:-1,perm:0> 4: <tag:0,id:-1,perm:0> 5: <tag:0,id:-1,perm:0> 6: <tag:0,id:-1,perm:0> 7: <tag:0,id:-1,perm:0> 8: <tag:0,id:-1,perm:0>
9: creating ace
ACL[n=10]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0> 2: <tag:0,id:-1,perm:0> 3: <tag:0,id:-1,perm:0> 4: <tag:0,id:-1,perm:0> 5: <tag:0,id:-1,perm:0> 6: <tag:0,id:-1,perm:0> 7: <tag:0,id:-1,perm:0> 8: <tag:0,id:-1,perm:0> 9: <tag:0,id:-1,perm:0>
10: creating ace
ACL[n=11]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0> 2: <tag:0,id:-1,perm:0> 3: <tag:0,id:-1,perm:0> 4: <tag:0,id:-1,perm:0> 5: <tag:0,id:-1,perm:0> 6: <tag:0,id:-1,perm:0> 7: <tag:0,id:-1,perm:0> 8: <tag:0,id:-1,perm:0> 9: <tag:0,id:-1,perm:0> 10: <tag:0,id:-1,perm:0>
11: creating ace
ACL[n=12]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0> 2: <tag:0,id:-1,perm:0> 3: <tag:0,id:-1,perm:0> 4: <tag:0,id:-1,perm:0> 5: <tag:0,id:-1,perm:0> 6: <tag:0,id:-1,perm:0> 7: <tag:0,id:-1,perm:0> 8: <tag:0,id:-1,perm:0> 9: <tag:0,id:-1,perm:0> 10: <tag:0,id:-1,perm:0> 11: <tag:0,id:-1,perm:0>
12: creating ace
ACL[n=13]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0> 2: <tag:0,id:-1,perm:0> 3: <tag:0,id:-1,perm:0> 4: <tag:0,id:-1,perm:0> 5: <tag:0,id:-1,perm:0> 6: <tag:0,id:-1,perm:0> 7: <tag:0,id:-1,perm:0> 8: <tag:0,id:-1,perm:0> 9: <tag:0,id:-1,perm:0> 10: <tag:0,id:-1,perm:0> 11: <tag:0,id:-1,perm:0> 12: <tag:0,id:-1,perm:0>
13: creating ace
ACL[n=14]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0> 2: <tag:0,id:-1,perm:0> 3: <tag:0,id:-1,perm:0> 4: <tag:0,id:-1,perm:0> 5: <tag:0,id:-1,perm:0> 6: <tag:0,id:-1,perm:0> 7: <tag:0,id:-1,perm:0> 8: <tag:0,id:-1,perm:0> 9: <tag:0,id:-1,perm:0> 10: <tag:0,id:-1,perm:0> 11: <tag:0,id:-1,perm:0> 12: <tag:0,id:-1,perm:0> 13: <tag:0,id:-1,perm:0>
14: creating ace
ACL[n=15]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0> 2: <tag:0,id:-1,perm:0> 3: <tag:0,id:-1,perm:0> 4: <tag:0,id:-1,perm:0> 5: <tag:0,id:-1,perm:0> 6: <tag:0,id:-1,perm:0> 7: <tag:0,id:-1,perm:0> 8: <tag:0,id:-1,perm:0> 9: <tag:0,id:-1,perm:0> 10: <tag:0,id:-1,perm:0> 11: <tag:0,id:-1,perm:0> 12: <tag:0,id:-1,perm:0> 13: <tag:0,id:-1,perm:0> 14: <tag:0,id:-1,perm:0>
15: creating ace
ACL[n=16]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0> 2: <tag:0,id:-1,perm:0> 3: <tag:0,id:-1,perm:0> 4: <tag:0,id:-1,perm:0> 5: <tag:0,id:-1,perm:0> 6: <tag:0,id:-1,perm:0> 7: <tag:0,id:-1,perm:0> 8: <tag:0,id:-1,perm:0> 9: <tag:0,id:-1,perm:0> 10: <tag:0,id:-1,perm:0> 11: <tag:0,id:-1,perm:0> 12: <tag:0,id:-1,perm:0> 13: <tag:0,id:-1,perm:0> 14: <tag:0,id:-1,perm:0> 15: <tag:0,id:-1,perm:0>
16: creating ace
ACL[n=17]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0> 2: <tag:0,id:-1,perm:0> 3: <tag:0,id:-1,perm:0> 4: <tag:0,id:-1,perm:0> 5: <tag:0,id:-1,perm:0> 6: <tag:0,id:-1,perm:0> 7: <tag:0,id:-1,perm:0> 8: <tag:0,id:-1,perm:0> 9: <tag:0,id:-1,perm:0> 10: <tag:0,id:-1,perm:0> 11: <tag:0,id:-1,perm:0> 12: <tag:0,id:-1,perm:0> 13: <tag:0,id:-1,perm:0> 14: <tag:0,id:-1,perm:0> 15: <tag:0,id:-1,perm:0> 16: <tag:0,id:-1,perm:0>
17: creating ace
ACL[n=18]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0> 2: <tag:0,id:-1,perm:0> 3: <tag:0,id:-1,perm:0> 4: <tag:0,id:-1,perm:0> 5: <tag:0,id:-1,perm:0> 6: <tag:0,id:-1,perm:0> 7: <tag:0,id:-1,perm:0> 8: <tag:0,id:-1,perm:0> 9: <tag:0,id:-1,perm:0> 10: <tag:0,id:-1,perm:0> 11: <tag:0,id:-1,perm:0> 12: <tag:0,id:-1,perm:0> 13: <tag:0,id:-1,perm:0> 14: <tag:0,id:-1,perm:0> 15: <tag:0,id:-1,perm:0> 16: <tag:0,id:-1,perm:0> 17: <tag:0,id:-1,perm:0>
18: creating ace
ACL[n=19]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0> 2: <tag:0,id:-1,perm:0> 3: <tag:0,id:-1,perm:0> 4: <tag:0,id:-1,perm:0> 5: <tag:0,id:-1,perm:0> 6: <tag:0,id:-1,perm:0> 7: <tag:0,id:-1,perm:0> 8: <tag:0,id:-1,perm:0> 9: <tag:0,id:-1,perm:0> 10: <tag:0,id:-1,perm:0> 11: <tag:0,id:-1,perm:0> 12: <tag:0,id:-1,perm:0> 13: <tag:0,id:-1,perm:0> 14: <tag:0,id:-1,perm:0> 15: <tag:0,id:-1,perm:0> 16: <tag:0,id:-1,perm:0> 17: <tag:0,id:-1,perm:0> 18: <tag:0,id:-1,perm:0>
19: creating ace
ACL[n=20]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0> 2: <tag:0,id:-1,perm:0> 3: <tag:0,id:-1,perm:0> 4: <tag:0,id:-1,perm:0> 5: <tag:0,id:-1,perm:0> 6: <tag:0,id:-1,perm:0> 7: <tag:0,id:-1,perm:0> 8: <tag:0,id:-1,perm:0> 9: <tag:0,id:-1,perm:0> 10: <tag:0,id:-1,perm:0> 11: <tag:0,id:-1,perm:0> 12: <tag:0,id:-1,perm:0> 13: <tag:0,id:-1,perm:0> 14: <tag:0,id:-1,perm:0> 15: <tag:0,id:-1,perm:0> 16: <tag:0,id:-1,perm:0> 17: <tag:0,id:-1,perm:0> 18: <tag:0,id:-1,perm:0> 19: <tag:0,id:-1,perm:0>
20: creating ace
ACL[n=21]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0> 2: <tag:0,id:-1,perm:0> 3: <tag:0,id:-1,perm:0> 4: <tag:0,id:-1,perm:0> 5: <tag:0,id:-1,perm:0> 6: <tag:0,id:-1,perm:0> 7: <tag:0,id:-1,perm:0> 8: <tag:0,id:-1,perm:0> 9: <tag:0,id:-1,perm:0> 10: <tag:0,id:-1,perm:0> 11: <tag:0,id:-1,perm:0> 12: <tag:0,id:-1,perm:0> 13: <tag:0,id:-1,perm:0> 14: <tag:0,id:-1,perm:0> 15: <tag:0,id:-1,perm:0> 16: <tag:0,id:-1,perm:0> 17: <tag:0,id:-1,perm:0> 18: <tag:0,id:-1,perm:0> 19: <tag:0,id:-1,perm:0> 20: <tag:0,id:-1,perm:0>
21: creating ace
ACL[n=22]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0> 2: <tag:0,id:-1,perm:0> 3: <tag:0,id:-1,perm:0> 4: <tag:0,id:-1,perm:0> 5: <tag:0,id:-1,perm:0> 6: <tag:0,id:-1,perm:0> 7: <tag:0,id:-1,perm:0> 8: <tag:0,id:-1,perm:0> 9: <tag:0,id:-1,perm:0> 10: <tag:0,id:-1,perm:0> 11: <tag:0,id:-1,perm:0> 12: <tag:0,id:-1,perm:0> 13: <tag:0,id:-1,perm:0> 14: <tag:0,id:-1,perm:0> 15: <tag:0,id:-1,perm:0> 16: <tag:0,id:-1,perm:0> 17: <tag:0,id:-1,perm:0> 18: <tag:0,id:-1,perm:0> 19: <tag:0,id:-1,perm:0> 20: <tag:0,id:-1,perm:0> 21: <tag:0,id:-1,perm:0>
22: creating ace
ACL[n=23]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0> 2: <tag:0,id:-1,perm:0> 3: <tag:0,id:-1,perm:0> 4: <tag:0,id:-1,perm:0> 5: <tag:0,id:-1,perm:0> 6: <tag:0,id:-1,perm:0> 7: <tag:0,id:-1,perm:0> 8: <tag:0,id:-1,perm:0> 9: <tag:0,id:-1,perm:0> 10: <tag:0,id:-1,perm:0> 11: <tag:0,id:-1,perm:0> 12: <tag:0,id:-1,perm:0> 13: <tag:0,id:-1,perm:0> 14: <tag:0,id:-1,perm:0> 15: <tag:0,id:-1,perm:0> 16: <tag:0,id:-1,perm:0> 17: <tag:0,id:-1,perm:0> 18: <tag:0,id:-1,perm:0> 19: <tag:0,id:-1,perm:0> 20: <tag:0,id:-1,perm:0> 21: <tag:0,id:-1,perm:0> 22: <tag:0,id:-1,perm:0>
23: creating ace
ACL[n=24]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0> 2: <tag:0,id:-1,perm:0> 3: <tag:0,id:-1,perm:0> 4: <tag:0,id:-1,perm:0> 5: <tag:0,id:-1,perm:0> 6: <tag:0,id:-1,perm:0> 7: <tag:0,id:-1,perm:0> 8: <tag:0,id:-1,perm:0> 9: <tag:0,id:-1,perm:0> 10: <tag:0,id:-1,perm:0> 11: <tag:0,id:-1,perm:0> 12: <tag:0,id:-1,perm:0> 13: <tag:0,id:-1,perm:0> 14: <tag:0,id:-1,perm:0> 15: <tag:0,id:-1,perm:0> 16: <tag:0,id:-1,perm:0> 17: <tag:0,id:-1,perm:0> 18: <tag:0,id:-1,perm:0> 19: <tag:0,id:-1,perm:0> 20: <tag:0,id:-1,perm:0> 21: <tag:0,id:-1,perm:0> 22: <tag:0,id:-1,perm:0> 23: <tag:0,id:-1,perm:0>
24: creating ace
ACL[n=25]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0> 2: <tag:0,id:-1,perm:0> 3: <tag:0,id:-1,perm:0> 4: <tag:0,id:-1,perm:0> 5: <tag:0,id:-1,perm:0> 6: <tag:0,id:-1,perm:0> 7: <tag:0,id:-1,perm:0> 8: <tag:0,id:-1,perm:0> 9: <tag:0,id:-1,perm:0> 10: <tag:0,id:-1,perm:0> 11: <tag:0,id:-1,perm:0> 12: <tag:0,id:-1,perm:0> 13: <tag:0,id:-1,perm:0> 14: <tag:0,id:-1,perm:0> 15: <tag:0,id:-1,perm:0> 16: <tag:0,id:-1,perm:0> 17: <tag:0,id:-1,perm:0> 18: <tag:0,id:-1,perm:0> 19: <tag:0,id:-1,perm:0> 20: <tag:0,id:-1,perm:0> 21: <tag:0,id:-1,perm:0> 22: <tag:0,id:-1,perm:0> 23: <tag:0,id:-1,perm:0> 24: <tag:0,id:-1,perm:0>
25: creating ace
acl_test: acl_create_entry: Cannot allocate memory
ACL[n=25]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0> 2: <tag:0,id:-1,perm:0> 3: <tag:0,id:-1,perm:0> 4: <tag:0,id:-1,perm:0> 5: <tag:0,id:-1,perm:0> 6: <tag:0,id:-1,perm:0> 7: <tag:0,id:-1,perm:0> 8: <tag:0,id:-1,perm:0> 9: <tag:0,id:-1,perm:0> 10: <tag:0,id:-1,perm:0> 11: <tag:0,id:-1,perm:0> 12: <tag:0,id:-1,perm:0> 13: <tag:0,id:-1,perm:0> 14: <tag:0,id:-1,perm:0> 15: <tag:0,id:-1,perm:0> 16: <tag:0,id:-1,perm:0> 17: <tag:0,id:-1,perm:0> 18: <tag:0,id:-1,perm:0> 19: <tag:0,id:-1,perm:0> 20: <tag:0,id:-1,perm:0> 21: <tag:0,id:-1,perm:0> 22: <tag:0,id:-1,perm:0> 23: <tag:0,id:-1,perm:0> 24: <tag:0,id:-1,perm:0>
26: creating ace
acl_test: acl_create_entry: Cannot allocate memory
ACL[n=25]: 0: <tag:0,id:-1,perm:0> 1: <tag:0,id:-1,perm:0> 2: <tag:0,id:-1,perm:0> 3: <tag:0,id:-1,perm:0> 4: <tag:0,id:-1,perm:0> 5: <tag:0,id:-1,perm:0> 6: <tag:0,id:-1,perm:0> 7: <tag:0,id:-1,perm:0> 8: <tag:0,id:-1,perm:0> 9: <tag:0,id:-1,perm:0> 10: <tag:0,id:-1,perm:0> 11: <tag:0,id:-1,perm:0> 12: <tag:0,id:-1,perm:0> 13: <tag:0,id:-1,perm:0> 14: <tag:0,id:-1,perm:0> 15: <tag:0,id:-1,perm:0> 16: <tag:0,id:-1,perm:0> 17: <tag:0,id:-1,perm:0> 18: <tag:0,id:-1,perm:0> 19: <tag:0,id:-1,perm:0> 20: <tag:0,id:-1,perm:0> 21: <tag:0,id:-1,perm:0> 22: <tag:0,id:-1,perm:0> 23: <tag:0,id:-1,perm:0> 24: <tag:0,id:-1,perm:0>
*** test out getting ACEs ***
Get 1st entry on filled ACL
acl_get_entry -> 1
1: <tag:0,id:-1,perm:0>
Get 2th entry on filled ACL
acl_get_entry -> 1
2: <tag:0,id:-1,perm:0>
Get 3th entry on filled ACL
acl_get_entry -> 1
3: <tag:0,id:-1,perm:0>
Get 4th entry on filled ACL
acl_get_entry -> 1
4: <tag:0,id:-1,perm:0>
Get 5th entry on filled ACL
acl_get_entry -> 1
5: <tag:0,id:-1,perm:0>
Get 6th entry on filled ACL
acl_get_entry -> 1
6: <tag:0,id:-1,perm:0>
Get 7th entry on filled ACL
acl_get_entry -> 1
7: <tag:0,id:-1,perm:0>
Get 8th entry on filled ACL
acl_get_entry -> 1
8: <tag:0,id:-1,perm:0>
Get 9th entry on filled ACL
acl_get_entry -> 1
9: <tag:0,id:-1,perm:0>
Get 10th entry on filled ACL
acl_get_entry -> 1
10: <tag:0,id:-1,perm:0>
Get 11th entry on filled ACL
acl_get_entry -> 1
11: <tag:0,id:-1,perm:0>
Get 12th entry on filled ACL
acl_get_entry -> 1
12: <tag:0,id:-1,perm:0>
Get 13th entry on filled ACL
acl_get_entry -> 1
13: <tag:0,id:-1,perm:0>
Get 14th entry on filled ACL
acl_get_entry -> 1
14: <tag:0,id:-1,perm:0>
Get 15th entry on filled ACL
acl_get_entry -> 1
15: <tag:0,id:-1,perm:0>
Get 16th entry on filled ACL
acl_get_entry -> 1
16: <tag:0,id:-1,perm:0>
Get 17th entry on filled ACL
acl_get_entry -> 1
17: <tag:0,id:-1,perm:0>
Get 18th entry on filled ACL
acl_get_entry -> 1
18: <tag:0,id:-1,perm:0>
Get 19th entry on filled ACL
acl_get_entry -> 1
19: <tag:0,id:-1,perm:0>
Get 20th entry on filled ACL
acl_get_entry -> 1
20: <tag:0,id:-1,perm:0>
Get 21th entry on filled ACL
acl_get_entry -> 1
21: <tag:0,id:-1,perm:0>
Get 22th entry on filled ACL
acl_get_entry -> 1
22: <tag:0,id:-1,perm:0>
Get 23th entry on filled ACL
acl_get_entry -> 1
23: <tag:0,id:-1,perm:0>
Get 24th entry on filled ACL
acl_get_entry -> 1
24: <tag:0,id:-1,perm:0>
Get 25th entry on filled ACL
acl_get_entry -> 1
25: <tag:0,id:-1,perm:0>
Get 26th entry on filled ACL
acl_get_entry -> 0
Get 27th entry on filled ACL
acl_get_entry -> 0
dump empty ACL
Get 1st entry on filled ACL
acl_get_entry -> 0
Get 2th entry on filled ACL
acl_get_entry -> 0
fill an ACL with known bogus values
Get 1st entry on filled ACL
acl_get_entry -> 1
1: <tag:0,id:1,perm:2>
Get 2th entry on filled ACL
acl_get_entry -> 1
2: <tag:1,id:2,perm:3>
Get 3th entry on filled ACL
acl_get_entry -> 1
3: <tag:2,id:3,perm:4>
Get 4th entry on filled ACL
acl_get_entry -> 1
4: <tag:3,id:4,perm:5>
Get 5th entry on filled ACL
acl_get_entry -> 1
5: <tag:4,id:5,perm:6>
Get 6th entry on filled ACL
acl_get_entry -> 1
6: <tag:5,id:6,perm:7>
Get 7th entry on filled ACL
acl_get_entry -> 1
7: <tag:6,id:7,perm:8>
Get 8th entry on filled ACL
acl_get_entry -> 1
8: <tag:7,id:8,perm:9>
Get 9th entry on filled ACL
acl_get_entry -> 1
9: <tag:8,id:9,perm:10>
Get 10th entry on filled ACL
acl_get_entry -> 1
10: <tag:9,id:10,perm:11>
Get 11th entry on filled ACL
acl_get_entry -> 1
11: <tag:10,id:11,perm:12>
Get 12th entry on filled ACL
acl_get_entry -> 1
12: <tag:11,id:12,perm:13>
Get 13th entry on filled ACL
acl_get_entry -> 1
13: <tag:12,id:13,perm:14>
Get 14th entry on filled ACL
acl_get_entry -> 1
14: <tag:13,id:14,perm:15>
Get 15th entry on filled ACL
acl_get_entry -> 1
15: <tag:14,id:15,perm:16>
Get 16th entry on filled ACL
acl_get_entry -> 1
16: <tag:15,id:16,perm:17>
Get 17th entry on filled ACL
acl_get_entry -> 1
17: <tag:16,id:17,perm:18>
Get 18th entry on filled ACL
acl_get_entry -> 1
18: <tag:17,id:18,perm:19>
Get 19th entry on filled ACL
acl_get_entry -> 1
19: <tag:18,id:19,perm:20>
Get 20th entry on filled ACL
acl_get_entry -> 1
20: <tag:19,id:20,perm:21>
Get 21th entry on filled ACL
acl_get_entry -> 1
21: <tag:20,id:21,perm:22>
Get 22th entry on filled ACL
acl_get_entry -> 1
22: <tag:21,id:22,perm:23>
Get 23th entry on filled ACL
acl_get_entry -> 1
23: <tag:22,id:23,perm:24>
Get 24th entry on filled ACL
acl_get_entry -> 1
24: <tag:23,id:24,perm:25>
Get 25th entry on filled ACL
acl_get_entry -> 1
25: <tag:24,id:25,perm:26>
Get 26th entry on filled ACL
acl_get_entry -> 0
Get 27th entry on filled ACL
acl_get_entry -> 0
*** test out ACL to text for empty ACL***
acl_to_text(empty_acl,NULL) -> ""
acl_to_text(empty_acl,NULL) -> "", len = 0
acl_to_text(NULL,NULL) -> "NULL"
*** test out acl_get_qualifier ***
uid = 1
uid = 1
uidp is NULL: Invalid argument
uidp is NULL: Invalid argument
-2
View File
@@ -54,8 +54,6 @@
054 auto quick 054 auto quick
055 dump ioctl remote tape 055 dump ioctl remote tape
056 dump ioctl auto quick 056 dump ioctl auto quick
057 acl auto
058 acl auto
059 dump ioctl auto quick 059 dump ioctl auto quick
060 dump ioctl auto quick 060 dump ioctl auto quick
061 dump ioctl auto quick 061 dump ioctl auto quick