Changeset 393 for trunk/test


Ignore:
Timestamp:
Feb 14, 2012, 9:04:40 PM (13 years ago)
Author:
katerina
Message:

Fix for ticket #290 (SUID regression test breaks with selinux).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/testrun_1c.sh

    r321 r393  
    6464chk_suiddata_7 () {
    6565    one_sec_sleep
    66     tmp=`ls -l "${BASE}/a/a/y" 2>/dev/null | awk '{ print $1}'`
     66    tmp=`ls -l "${BASE}/a/a/y" 2>/dev/null | awk '{ print $1}' | cut -c 1-10`
    6767    if [ "x$tmp" = "x-r-Sr--r--" ]; then
    6868        egrep "CRIT.*POLICY \[SuidCheck\].*${BASE}/a/a/y" $LOGFILE >/dev/null 2>&1
     
    8080        return 1
    8181    fi
    82     tmp=`ls -l "${BASE}/a/a/a/y" 2>/dev/null | awk '{ print $1}'`
     82    tmp=`ls -l "${BASE}/a/a/a/y" 2>/dev/null | awk '{ print $1}' | cut -c 1-10`
    8383    if [ "x$tmp" = "x-r-Sr--r--" ]; then
    8484        egrep "CRIT.*POLICY \[SuidCheck\].*${BASE}/a/a/a/y" $LOGFILE >/dev/null 2>&1
     
    9696        return 1
    9797    fi
    98     tmp=`ls -l "${BASE}/a/abc/y" 2>/dev/null | awk '{ print $1}'`
     98    tmp=`ls -l "${BASE}/a/abc/y" 2>/dev/null | awk '{ print $1}' | cut -c 1-10`
    9999    if [ "x$tmp" = "x-r-Sr--r--" ]; then
    100100        egrep "CRIT.*POLICY \[SuidCheck\].*${BASE}/a/abc/y" $LOGFILE >/dev/null 2>&1
     
    135135chk_suiddata_6 () {
    136136    one_sec_sleep
    137     tmp=`ls -l "${BASE}/a/a/y" 2>/dev/null | awk '{ print $1}'`
     137    tmp=`ls -l "${BASE}/a/a/y" 2>/dev/null | awk '{ print $1}' | cut -c 1-10`
    138138    if [ "x$tmp" = "x-rwsr-xr-x" ]; then
    139139        egrep "CRIT.*POLICY \[SuidCheck\].*${BASE}/a/a/y" $LOGFILE >/dev/null 2>&1
     
    250250chk_suiddata_3 () {
    251251    one_sec_sleep
    252     tmp=`ls -l "${BASE}/a/a/y" 2>/dev/null | awk '{ print $1}'`
     252    tmp=`ls -l "${BASE}/a/a/y" 2>/dev/null | awk '{ print $1}' | cut -c 1-10`
    253253    if [ "x$tmp" = "x-rwxr-xr-x" ]; then
    254254        return 0;
Note: See TracChangeset for help on using the changeset viewer.