You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(40) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(205) |
Feb
(281) |
Mar
(428) |
Apr
(444) |
May
(137) |
Jun
(341) |
Jul
(509) |
Aug
(184) |
Sep
(51) |
Oct
(70) |
Nov
(52) |
Dec
(41) |
2004 |
Jan
(27) |
Feb
|
Mar
|
Apr
(99) |
May
(562) |
Jun
(36) |
Jul
(74) |
Aug
(61) |
Sep
(33) |
Oct
(76) |
Nov
(64) |
Dec
(71) |
2005 |
Jan
(19) |
Feb
(28) |
Mar
(726) |
Apr
(310) |
May
(325) |
Jun
(496) |
Jul
(192) |
Aug
(72) |
Sep
(41) |
Oct
(294) |
Nov
(79) |
Dec
(64) |
2006 |
Jan
(112) |
Feb
(267) |
Mar
(33) |
Apr
(16) |
May
(121) |
Jun
(77) |
Jul
(43) |
Aug
(281) |
Sep
(97) |
Oct
(19) |
Nov
(15) |
Dec
(50) |
2007 |
Jan
(2) |
Feb
(31) |
Mar
(21) |
Apr
(76) |
May
(36) |
Jun
(97) |
Jul
(93) |
Aug
(85) |
Sep
(77) |
Oct
(35) |
Nov
(106) |
Dec
(81) |
2008 |
Jan
(86) |
Feb
(139) |
Mar
(378) |
Apr
(127) |
May
(196) |
Jun
(108) |
Jul
(136) |
Aug
(137) |
Sep
(114) |
Oct
(229) |
Nov
(312) |
Dec
(180) |
2009 |
Jan
(747) |
Feb
(907) |
Mar
(371) |
Apr
(174) |
May
(192) |
Jun
(163) |
Jul
(744) |
Aug
(495) |
Sep
(85) |
Oct
(950) |
Nov
(311) |
Dec
(180) |
2010 |
Jan
(303) |
Feb
(33) |
Mar
(9) |
Apr
|
May
(1) |
Jun
(4) |
Jul
(18) |
Aug
(37) |
Sep
(2) |
Oct
(2) |
Nov
(6) |
Dec
(3) |
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
(2) |
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
(1) |
Jul
(11) |
Aug
(1) |
Sep
|
Oct
(17) |
Nov
(1) |
Dec
|
2013 |
Jan
(7) |
Feb
(2) |
Mar
(1) |
Apr
(1) |
May
(1) |
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(5) |
2014 |
Jan
(2) |
Feb
|
Mar
|
Apr
(3) |
May
(4) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
(2) |
2016 |
Jan
(3) |
Feb
|
Mar
(1) |
Apr
(1) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2017 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Peter O. <obe...@us...> - 2010-02-07 13:07:18
|
Update of /cvsroot/ltp/utils/analysis/lcov In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv3254 Added Files: COPYING Log Message: lcov: add COPYING file --- NEW FILE: COPYING --- GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. <one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> 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; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will 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 to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. <signature of Ty Coon>, 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. |
From: Garrett C. <yab...@us...> - 2010-02-06 08:34:09
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/utimensat In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv9132/testcases/kernel/syscalls/utimensat Modified Files: utimensat_tests.sh Log Message: This patch makes the test script cd into the tmp directory before running the tests. This makes sure the script does not delete the original utimensat binary, causing the test to fail on a second run. Signed-off-by: Henry Yei<hy...@mv...> Index: utimensat_tests.sh =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** utimensat_tests.sh 16 Sep 2009 15:02:10 -0000 1.9 --- utimensat_tests.sh 6 Feb 2010 08:34:00 -0000 1.10 *************** *** 62,66 **** FILE=$1 ! # Make sure any old verion of file is deleted if test -e $FILE; then --- 62,66 ---- FILE=$1 ! # Make sure any old version of file is deleted if test -e $FILE; then *************** *** 127,131 **** read res atime mtime < $RESULT_FILE ! echo "EXPECTED: $EXPECTED_RESULT $EXPECT_ATIME_CHANGED "\ "$EXPECT_MTIME_CHANGED" --- 127,131 ---- read res atime mtime < $RESULT_FILE ! echo "EXPECTED: $EXPECTED_RESULT $EXPECT_ATIME_CHANGED "\ "$EXPECT_MTIME_CHANGED" *************** *** 246,250 **** user_tester=nobody sudo -u $user_tester mkdir -p $TEST_DIR ! chown root $LTPROOT/testcases/bin/$TEST_PROG chmod ugo+x,u+s $LTPROOT/testcases/bin/$TEST_PROG --- 246,250 ---- user_tester=nobody sudo -u $user_tester mkdir -p $TEST_DIR ! cd $TEST_DIR chown root $LTPROOT/testcases/bin/$TEST_PROG chmod ugo+x,u+s $LTPROOT/testcases/bin/$TEST_PROG |
From: Garrett C. <yab...@us...> - 2010-02-06 06:40:07
|
Update of /cvsroot/ltp/ltp/testcases/kernel/containers In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv5576/testcases/kernel/containers Modified Files: container_test.sh Log Message: check_pidns_enabled doesn't exist anymore. Just run the test as-is... Noticed by Rishi. Signed-off-by: Garrett Cooper <yan...@gm...> Index: container_test.sh =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/containers/container_test.sh,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** container_test.sh 4 Mar 2009 07:03:42 -0000 1.8 --- container_test.sh 6 Feb 2010 06:39:57 -0000 1.9 *************** *** 47,57 **** fi ! check_pidns_enabled ! if [ $? -eq 0 ]; then ! echo "Running pidns tests." ! runpidnstest.sh ! else ! echo "Process id namespaces not enabled in kernel. Not running pidns tests." ! fi check_mqns_enabled --- 47,52 ---- fi ! echo "Running pidns tests." ! runpidnstest.sh check_mqns_enabled |
From: Garrett C. <yab...@us...> - 2010-02-05 16:07:34
|
Update of /cvsroot/ltp/ltp/testcases/kernel/fs/acls In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv15804/acls Modified Files: acl_link_test.c Log Message: More whitespace only changes. Signed-off-by: Garrett Cooper <yan...@gm...> Index: acl_link_test.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/fs/acls/acl_link_test.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** acl_link_test.c 26 Feb 2009 12:14:52 -0000 1.3 --- acl_link_test.c 5 Feb 2010 16:07:12 -0000 1.4 *************** *** 19,38 **** } ! if(-1 == (s = listxattr(argv[1], list, 1024)) ) { ! perror("listxattr"); ! return 1; ! } ! if(s == 0) { ! printf("No xattrs defined for %s, further testcase useless\n",argv[1]); ! return 1; ! } ! tok = strtok(list, "\0"); ! s = getxattr(argv[1], tok, (void*)value, 1024); ! if(-1 == s) { ! perror("getxattr"); ! return -1; ! } ! s = lsetxattr(argv[1], tok, (void*)value, s, 0); if (s == -1) { --- 19,38 ---- } ! if(-1 == (s = listxattr(argv[1], list, 1024)) ) { ! perror("listxattr"); ! return 1; ! } ! if(s == 0) { ! printf("No xattrs defined for %s, further testcase useless\n",argv[1]); ! return 1; ! } ! tok = strtok(list, "\0"); ! s = getxattr(argv[1], tok, (void*)value, 1024); ! if(-1 == s) { ! perror("getxattr"); ! return -1; ! } ! s = lsetxattr(argv[1], tok, (void*)value, s, 0); if (s == -1) { *************** *** 42,51 **** } ! s = lremovexattr(argv[1],tok); if (s == -1) { ! printf ("User unable to remove extended attributes %s !\n", argv[1]); ! printf("errno = %i\n", errno); ! rc = 1; ! } return rc; --- 42,51 ---- } ! s = lremovexattr(argv[1],tok); if (s == -1) { ! printf ("User unable to remove extended attributes %s !\n", argv[1]); ! printf("errno = %i\n", errno); ! rc = 1; ! } return rc; |
From: Garrett C. <yab...@us...> - 2010-02-05 16:05:49
|
Update of /cvsroot/ltp/ltp/testcases/kernel/fs/acls In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv15331/acls Modified Files: acl_file_test.c Log Message: Whitespace only change. Signed-off-by: Garrett Cooper <yan...@gm...> Index: acl_file_test.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/fs/acls/acl_file_test.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** acl_file_test.c 26 Feb 2009 12:14:52 -0000 1.5 --- acl_file_test.c 5 Feb 2010 16:05:39 -0000 1.6 *************** *** 30,48 **** } ! if(-1 == (s = flistxattr(fd, list, 1024)) ) { ! perror("flistxattr"); ! return 1; ! } ! if(s == 0) { ! printf("No xattrs defined for %s, further testcase useless\n",file); ! return 1; ! } ! tok = strtok(list, "\0"); ! s = fgetxattr(fd, tok, (void*)value, 1024); ! if(s == -1) { ! perror("fgetxattr"); ! return 1; ! } ! s = fsetxattr(fd, tok, (void*)value, s, 0); if (s == -1) { --- 30,48 ---- } ! if(-1 == (s = flistxattr(fd, list, 1024)) ) { ! perror("flistxattr"); ! return 1; ! } ! if(s == 0) { ! printf("No xattrs defined for %s, further testcase useless\n",file); ! return 1; ! } ! tok = strtok(list, "\0"); ! s = fgetxattr(fd, tok, (void*)value, 1024); ! if(s == -1) { ! perror("fgetxattr"); ! return 1; ! } ! s = fsetxattr(fd, tok, (void*)value, s, 0); if (s == -1) { *************** *** 60,67 **** #endif if (s == -1) { ! printf ("User unable to remove extended attributes file %s !\n", argv[1]); ! printf("errno = %i\n", errno); ! rc = 1; ! } close (fd); --- 60,67 ---- #endif if (s == -1) { ! printf ("User unable to remove extended attributes file %s !\n", argv[1]); ! printf("errno = %i\n", errno); ! rc = 1; ! } close (fd); |
From: Garrett C. <yab...@us...> - 2010-02-05 15:35:42
|
Update of /cvsroot/ltp/ltp/testcases/kernel/fs/ftest In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv5067/ftest Modified Files: libftest.c libftest.h Log Message: Resolve buffer overflow issue with ftest[37] reported by glibc by changing char* type to void* type. I didn't use caddr_t because caddr_t has its own set of caveats with 32-bit userland vs 64-bit kernel, etc... Hi, I've been seeing the following messages when ftest03 and ftest07 are executed on a regular basis as of late (may be due to a recent glibc upgrade): *** buffer overflow detected ***: ftest03 terminated ======= Backtrace: ========= /lib/libc.so.6(__fortify_fail+0x37)[0x7f100b0c3867] /lib/libc.so.6[0x7f100b0c1680] /lib/libc.so.6[0x7f100b0c0979] /lib/libc.so.6(_IO_default_xsputn+0x85)[0x7f100b04ef25] /lib/libc.so.6(_IO_vfprintf+0x1fed)[0x7f100b0216dd] /lib/libc.so.6(__vsprintf_chk+0x9d)[0x7f100b0c0a1d] /lib/libc.so.6(__sprintf_chk+0x80)[0x7f100b0c0960] ftest03[0x401f05] ftest03[0x402a76] /lib/libc.so.6(__libc_start_main+0xe6)[0x7f100affba26] ftest03[0x401d59] ======= Memory map: ======== 00400000-00408000 r-xp 00000000 fd:03 74957 /tmp/tmp.9O93FRsMhN/ltp/testcases/bin/ftest03 00608000-00609000 r--p 00008000 fd:03 74957 /tmp/tmp.9O93FRsMhN/ltp/testcases/bin/ftest03 00609000-0060a000 rw-p 00009000 fd:03 74957 /tmp/tmp.9O93FRsMhN/ltp/testcases/bin/ftest03 0060a000-0060f000 rw-p 00000000 00:00 0 01f91000-01fb2000 rw-p 00000000 00:00 0 [heap] 7f100adc6000-7f100addc000 r-xp 00000000 fd:03 6454 /lib64/libgcc_s.so.1 7f100addc000-7f100afdb000 ---p 00016000 fd:03 6454 /lib64/libgcc_s.so.1 7f100afdb000-7f100afdc000 r--p 00015000 fd:03 6454 /lib64/libgcc_s.so.1 7f100afdc000-7f100afdd000 rw-p 00016000 fd:03 6454 /lib64/libgcc_s.so.1 7f100afdd000-7f100b12c000 r-xp 00000000 fd:03 5882 /lib64/libc-2.10.1.so 7f100b12c000-7f100b32c000 ---p 0014f000 fd:03 5882 /lib64/libc-2.10.1.so 7f100b32c000-7f100b330000 r--p 0014f000 fd:03 5882 /lib64/libc-2.10.1.so 7f100b330000-7f100b331000 rw-p 00153000 fd:03 5882 /lib64/libc-2.10.1.so 7f100b331000-7f100b336000 rw-p 00000000 00:00 0 7f100b336000-7f100b353000 r-xp 00000000 fd:03 5871 /lib64/ld-2.10.1.so 7f100b536000-7f100b538000 rw-p 00000000 00:00 0 7f100b550000-7f100b552000 rw-p 00000000 00:00 0 7f100b552000-7f100b553000 r--p 0001c000 fd:03 5871 /lib64/ld-2.10.1.so 7f100b553000-7f100b554000 rw-p 0001d000 fd:03 5871 /lib64/ld-2.10.1.so 7fffe07b0000-7fffe07c5000 rw-p 00000000 00:00 0 [stack] 7fffe07ff000-7fffe0800000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] *** buffer overflow detected ***: ftest07 terminated ======= Backtrace: ========= /lib/libc.so.6(__fortify_fail+0x37)[0x7f8678b10867] /lib/libc.so.6[0x7f8678b0e680] /lib/libc.so.6[0x7f8678b0d979] /lib/libc.so.6(_IO_default_xsputn+0x85)[0x7f8678a9bf25] /lib/libc.so.6(_IO_vfprintf+0x1fed)[0x7f8678a6e6dd] /lib/libc.so.6(__vsprintf_chk+0x9d)[0x7f8678b0da1d] /lib/libc.so.6(__sprintf_chk+0x80)[0x7f8678b0d960] ftest07[0x401ec5] ftest07[0x402a76] /lib/libc.so.6(__libc_start_main+0xe6)[0x7f8678a48a26] ftest07[0x401d19] ======= Memory map: ======== 00400000-00408000 r-xp 00000000 fd:03 74961 /tmp/tmp.9O93FRsMhN/ltp/testcases/bin/ftest07 00608000-00609000 r--p 00008000 fd:03 74961 /tmp/tmp.9O93FRsMhN/ltp/testcases/bin/ftest07 00609000-0060a000 rw-p 00009000 fd:03 74961 /tmp/tmp.9O93FRsMhN/ltp/testcases/bin/ftest07 0060a000-0060f000 rw-p 00000000 00:00 0 01f3f000-01f60000 rw-p 00000000 00:00 0 [heap] 7f8678813000-7f8678829000 r-xp 00000000 fd:03 6454 /lib64/libgcc_s.so.1 7f8678829000-7f8678a28000 ---p 00016000 fd:03 6454 /lib64/libgcc_s.so.1 7f8678a28000-7f8678a29000 r--p 00015000 fd:03 6454 /lib64/libgcc_s.so.1 7f8678a29000-7f8678a2a000 rw-p 00016000 fd:03 6454 /lib64/libgcc_s.so.1 7f8678a2a000-7f8678b79000 r-xp 00000000 fd:03 5882 /lib64/libc-2.10.1.so 7f8678b79000-7f8678d79000 ---p 0014f000 fd:03 5882 /lib64/libc-2.10.1.so 7f8678d79000-7f8678d7d000 r--p 0014f000 fd:03 5882 /lib64/libc-2.10.1.so 7f8678d7d000-7f8678d7e000 rw-p 00153000 fd:03 5882 /lib64/libc-2.10.1.so 7f8678d7e000-7f8678d83000 rw-p 00000000 00:00 0 7f8678d83000-7f8678da0000 r-xp 00000000 fd:03 5871 /lib64/ld-2.10.1.so 7f8678f83000-7f8678f85000 rw-p 00000000 00:00 0 7f8678f9d000-7f8678f9f000 rw-p 00000000 00:00 0 7f8678f9f000-7f8678fa0000 r--p 0001c000 fd:03 5871 /lib64/ld-2.10.1.so 7f8678fa0000-7f8678fa1000 rw-p 0001d000 fd:03 5871 /lib64/ld-2.10.1.so 7fffeffa2000-7fffeffb7000 rw-p 00000000 00:00 0 [stack] 7fffeffff000-7ffff0000000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] gcooper@orangebox /scratch/ltp $ emerge --info Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r6 x86_64) ================================================================= System uname: Linux-2.6.31-gentoo-r6-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9400_@_2.66GHz-with-gentoo-1.12.13 Timestamp of tree: Sun, 24 Jan 2010 07:00:21 +0000 app-shells/bash: 4.0_p35 dev-java/java-config: 2.1.9-r2 dev-lang/python: 2.6.4 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.27-r2 Figuring that ftest07.c compiled (mostly) without warnings, I thought it might be an issue common to both tests. Signed-off-by: Garrett Cooper <yan...@gm...> Acked-by: K.D. Lucas <kd...@gm...> Index: libftest.h =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/fs/ftest/libftest.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** libftest.h 18 Sep 2009 17:44:08 -0000 1.1 --- libftest.h 5 Feb 2010 15:35:32 -0000 1.2 *************** *** 35,39 **** * Dump bits string. */ ! void ft_dumpbits(char *bits, int size); /* --- 35,39 ---- * Dump bits string. */ ! void ft_dumpbits(void *bits, size_t size); /* Index: libftest.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/fs/ftest/libftest.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** libftest.c 18 Sep 2009 17:44:08 -0000 1.1 --- libftest.c 5 Feb 2010 15:35:30 -0000 1.2 *************** *** 18,21 **** --- 18,22 ---- #include <sys/uio.h> + #include <assert.h> #include "test.h" #include "libftest.h" *************** *** 62,75 **** * Dump bits string. */ ! void ft_dumpbits(char *bits, int size) { ! char *buf; tst_resm(TINFO, "\tBits array:"); for (buf = bits; size > 0; --size, ++buf) { ! if ((buf-bits) % 16 == 0) ! tst_resm(TINFO, "\t%04x:\t", 8*(buf-bits)); ! tst_resm(TINFO, "\t%02x ", *buf & 0xff); } --- 63,78 ---- * Dump bits string. */ ! void ft_dumpbits(void *bits, size_t size) { ! void *buf; tst_resm(TINFO, "\tBits array:"); for (buf = bits; size > 0; --size, ++buf) { ! if ((buf-bits) % 16 == 0) { ! assert (0 < (buf-bits)); ! tst_resm(TINFO, "\t%lu:\t", 8*(buf-bits)); ! } ! tst_resm(TINFO, "\t%02x ", *((char*) buf) & 0xff); } |
From: Garrett C. <yab...@us...> - 2010-02-03 10:19:40
|
Update of /cvsroot/ltp/ltp/testcases/kernel/security/selinux-testsuite/refpolicy In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv30324/refpolicy Modified Files: Makefile Log Message: Fix ordering of $(filter-out ) as noted by Stephen. Signed-off-by: Garrett Cooper <yan...@gm...> Index: Makefile =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/security/selinux-testsuite/refpolicy/Makefile,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** Makefile 25 Jan 2010 11:08:07 -0000 1.19 --- Makefile 3 Feb 2010 10:19:32 -0000 1.20 *************** *** 55,71 **** MAKE_TARGETS := test_policy.te test_policy.pp - ifneq ($(CHECKPOLICY_VERS),24) - POLICY_FILES := $(filter-out test_bounds.te,$(POLICY_FILES)) - endif - # This is being done to preserve precedence; test_global.te must come first. POLICY_FILES := test_global.te \ $(filter-out test_global.te,$(notdir $(wildcard $(TEST_POLICY_DIR)/*.te))) test_policy.te: $(addprefix $(TEST_POLICY_DIR)/,$(POLICY_FILES)) (cd "$(TEST_POLICY_DIR)" && cat $(POLICY_FILES)) > $@ test_policy.pp: test_policy.te ! @set -e; if [ -d "$(POLICY_DEVEL_DIR)" ]; then \ $(MAKE) -f $(POLICY_DEVEL_DIR)/Makefile test_policy.pp; \ else \ --- 55,71 ---- MAKE_TARGETS := test_policy.te test_policy.pp # This is being done to preserve precedence; test_global.te must come first. POLICY_FILES := test_global.te \ $(filter-out test_global.te,$(notdir $(wildcard $(TEST_POLICY_DIR)/*.te))) + ifneq ($(CHECKPOLICY_VERS),24) + POLICY_FILES := $(filter-out test_bounds.te,$(POLICY_FILES)) + endif + test_policy.te: $(addprefix $(TEST_POLICY_DIR)/,$(POLICY_FILES)) (cd "$(TEST_POLICY_DIR)" && cat $(POLICY_FILES)) > $@ test_policy.pp: test_policy.te ! set -e; if [ -d "$(POLICY_DEVEL_DIR)" ]; then \ $(MAKE) -f $(POLICY_DEVEL_DIR)/Makefile test_policy.pp; \ else \ |
From: Garrett C. <yab...@us...> - 2010-02-03 07:44:26
|
Update of /cvsroot/ltp/ltp In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv32648 Modified Files: Makefile Log Message: Avoid accidental rm -Rf / regression in last release by calling $(*abspath) on $(INSTALL_DIR) beforehand -- sure it sets it to $(abs_top_srcdir), but it's a lot safer safety net to not clean as opposed to blowing away /. Signed-off-by: Garrett Cooper <yan...@gm...> Index: Makefile =================================================================== RCS file: /cvsroot/ltp/ltp/Makefile,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -d -r1.63 -r1.64 *** Makefile 2 Feb 2010 08:25:09 -0000 1.63 --- Makefile 3 Feb 2010 07:44:18 -0000 1.64 *************** *** 95,98 **** --- 95,105 ---- INSTALL_DIR := $(DESTDIR)/$(prefix) + # DO NOT REMOVE THIS CALL (see clean_install_dir call below...)!!!! + ifdef MAKE_3_80_COMPAT + INSTALL_DIR := $(call MAKE_3_80_abspath,$(INSTALL_DIR)) + else + INSTALL_DIR := $(abspath $(INSTALL_DIR)) + endif + # build tree bootstrap targets and $(INSTALL_DIR) target. $(sort $(addprefix $(abs_top_builddir)/,$(BOOTSTRAP_TARGETS)) $(INSTALL_DIR) $(DESTDIR)/$(bindir)): *************** *** 142,148 **** # Clean the directory if the build-tree is properly configured and not set to # the srcdir. ! #ifeq ($(filter $(BUILD_TREE_STATE),$(BUILD_TREE_SRCDIR_INSTALL) $(BUILD_TREE_UNCONFIGURED)),) ! #CLEAN_TARGETS += clean_install_dir ! #endif clean:: $(CLEAN_TARGETS) --- 149,158 ---- # Clean the directory if the build-tree is properly configured and not set to # the srcdir. ! ifeq ($(filter $(BUILD_TREE_STATE),$(BUILD_TREE_SRCDIR_INSTALL) $(BUILD_TREE_UNCONFIGURED)),) ! # Make sure that we don't whack `/'!!!!! ! ifneq ($(INSTALL_DIR),/) ! CLEAN_TARGETS += clean_install_dir ! endif ! endif clean:: $(CLEAN_TARGETS) |
From: Garrett C. <yab...@us...> - 2010-02-03 07:42:22
|
Update of /cvsroot/ltp/ltp/include/mk In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv32380/include/mk Modified Files: config.mk.in Log Message: Get people to corral into proper make usage, just in case it wasn't 100% clear, so people avoid shooting themselves in the foot by accident. Signed-off-by: Garrett Cooper <yan...@gm...> Index: config.mk.in =================================================================== RCS file: /cvsroot/ltp/ltp/include/mk/config.mk.in,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** config.mk.in 23 Dec 2009 00:05:33 -0000 1.9 --- config.mk.in 3 Feb 2010 07:42:12 -0000 1.10 *************** *** 70,72 **** --- 70,76 ---- CXXFLAGS += $(DEBUG_CXXFLAGS) $(OPT_CXXFLAGS) $(WCXXFLAGS) + ifeq ($(strip $(prefix)),) + $(error you are using $$(prefix) incorrectly -- set it to $(abs_top_srcdir) if you want to build in the source tree) + endif + export datarootdir includedir libdir mandir prefix |
From: Cheap V. on www.22-44.cn <cre...@me...> - 2010-02-02 23:05:40
|
digit s etaoi n soupf in derid ing fisca lizes faste ners tomor row waist coat usage minis cule apper cepti ve wanga nui cluck impro perne ss flocc ulant hydro quino ne coerc ibili ty atroc ity gourm andis es troph oplas m milit ate mammi lla sooth es demim ondai ne mater nal mammi lla convo lutio ns despa ired joint er refol ded curat ively inter dicti on iraqi decid e schiz opod sawbi ll oakum innue ndos chapl ets vicin g loath ing antit rades param etriz ed withe rite |
From: Garrett C. <yab...@us...> - 2010-02-02 08:52:06
|
Update of /cvsroot/ltp/ltp/testcases/realtime In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv796/testcases/realtime Modified Files: Makefile Log Message: testcases/realtime/config.mk isn't a hard requirement for autotools and %clean. Signed-off-by: Garrett Cooper <yan...@gm...> Index: Makefile =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/realtime/Makefile,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Makefile 2 Feb 2010 08:42:47 -0000 1.9 --- Makefile 2 Feb 2010 08:51:53 -0000 1.10 *************** *** 30,34 **** --- 30,40 ---- include $(top_srcdir)/include/mk/env_pre.mk + # Ensure that this error / warning only applies for build targets. + # + # NOTE (garrcoop): this criterium should be in-sync with include/mk/env_pre.mk + # (minus help as that's only invoked in the top-level Makefile). + ifeq ($(filter autotools %clean,$(MAKECMDGOALS)),) include $(abs_srcdir)/config.mk + endif LIBDIR := lib |
From: Garrett C. <yab...@us...> - 2010-02-02 08:42:55
|
Update of /cvsroot/ltp/ltp/testcases/realtime In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv31461/testcases/realtime Modified Files: Makefile Log Message: Idiot... forgot the : Index: Makefile =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/realtime/Makefile,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Makefile 2 Feb 2010 08:40:50 -0000 1.8 --- Makefile 2 Feb 2010 08:42:47 -0000 1.9 *************** *** 99,103 **** # Stub reference for config.mk ! $(abs_srcdir)/config.mk $(MAKE) -C $(top_srcdir) help; false --- 99,103 ---- # Stub reference for config.mk ! $(abs_srcdir)/config.mk: $(MAKE) -C $(top_srcdir) help; false |
From: Garrett C. <yab...@us...> - 2010-02-02 08:40:58
|
Update of /cvsroot/ltp/ltp/testcases/realtime In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv30954/testcases/realtime Modified Files: Makefile Log Message: Add a reference to INSTALL for testcases/realtime's config.mk... Signed-off-by: Garrett Cooper <yan...@gm...> Index: Makefile =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/realtime/Makefile,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Makefile 14 Jan 2010 08:43:33 -0000 1.7 --- Makefile 2 Feb 2010 08:40:50 -0000 1.8 *************** *** 98,100 **** --- 98,104 ---- $(MAKE) -C $^ -f "$(abs_srcdir)/$(LIBDIR)/Makefile" clean + # Stub reference for config.mk + $(abs_srcdir)/config.mk + $(MAKE) -C $(top_srcdir) help; false + include $(top_srcdir)/include/mk/generic_trunk_target.mk |
From: Garrett C. <yab...@us...> - 2010-02-02 08:25:18
|
Update of /cvsroot/ltp/ltp In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv28116 Modified Files: Makefile Log Message: Don't clean up the install directory for now until I unfubar this mess. Signed-off-by: Garrett Cooper <yan...@gm...> Index: Makefile =================================================================== RCS file: /cvsroot/ltp/ltp/Makefile,v retrieving revision 1.62 retrieving revision 1.63 diff -C2 -d -r1.62 -r1.63 *** Makefile 29 Jan 2010 09:41:22 -0000 1.62 --- Makefile 2 Feb 2010 08:25:09 -0000 1.63 *************** *** 140,148 **** $(RM) -Rf "$(INSTALL_DIR)" ! # Don't clean the directory if the build-tree is set to the srcdir, or the ! # build tree is unconfigured. ! ifneq ($(filter $(BUILD_TREE_STATE),$(BUILD_TREE_SRCDIR_INSTALL) $(BUILD_TREE_UNCONFIGURED)),) ! CLEAN_TARGETS += clean_install_dir ! endif clean:: $(CLEAN_TARGETS) --- 140,148 ---- $(RM) -Rf "$(INSTALL_DIR)" ! # Clean the directory if the build-tree is properly configured and not set to ! # the srcdir. ! #ifeq ($(filter $(BUILD_TREE_STATE),$(BUILD_TREE_SRCDIR_INSTALL) $(BUILD_TREE_UNCONFIGURED)),) ! #CLEAN_TARGETS += clean_install_dir ! #endif clean:: $(CLEAN_TARGETS) |
From: Garrett C. <yab...@us...> - 2010-02-02 08:23:30
|
Update of /cvsroot/ltp/ltp/scripts In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv27680/scripts Added Files: safe_rm.sh Log Message: Add a safe_rm.sh script and test in light of accidental f-up with Mitani's system... Signed-off-by: Garrett Cooper <yan...@gm...> --- NEW FILE: safe_rm.sh --- #!/bin/sh # # A safe wrapper around rm(1) to avoid cleaning out folks' rootfs's or build # machines by accident. # # Copyright (C) 2010, Cisco Systems Inc. # # 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; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will 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 to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # Feel free to use this in your standard builds, or just leave it be (it has # been added to the build tests that should be run before each release to avoid # build regressions). # # Garrett Cooper, February 2010 # . "${0%/*}/lib/file_functions.sh" opts= opts_parse_done=0 set -e while [ $# -gt 0 ] ; do if [ $opts_parse_done -eq 0 ] ; then case "$1" in -*) [ "x$1" = "x--" ] && opts_parse_done=1 # None of the options to rm(1) are keyed. opts="$opts $1" ;; *) opts_parse_done=1 ;; esac fi if [ $opts_parse_done -eq 1 ] ; then abspath_file=$(_abspath "$1") if [ "x$abspath_file" = "x/" ] ; then cat <<EOF >&2 ${0##*/}: ERROR : not removing \`$1' to avoid removing root directory\! EOF false else if [ "x${SIMULATE_RM:-1}" != x1 ] ; then rm ${opts:--f} "$abspath_file" fi fi fi shift done |
From: Garrett C. <yab...@us...> - 2010-02-02 08:23:25
|
Update of /cvsroot/ltp/ltp/scripts/tests In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv27680/scripts/tests Added Files: test_safe_rm.sh Log Message: Add a safe_rm.sh script and test in light of accidental f-up with Mitani's system... Signed-off-by: Garrett Cooper <yan...@gm...> --- NEW FILE: test_safe_rm.sh --- #!/bin/sh # # Test for safe_rm.sh # # Copyright (C) 2010, Cisco Systems Inc. # # 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; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will 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 to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # Garrett Cooper, February 2010 # export SIMULATE_RM=1 export TCID=test_safe_rm export TST_TOTAL=6 export TST_COUNT=1 set -e ec=0 for i in /foo foo/bar /foo/bar/; do if "${0%/*}/../safe_rm.sh" $i ; then tst_resm TPASS "$i passed as expected" else tst_resm TFAIL "$i didn't pass as expected" ec=$(( $ec | 1 )) fi done for i in / /// /.; do if "${0%/*}/../safe_rm.sh" $i; then tst_resm TFAIL "$i didn't fail as expected" ec=$(( $ec | 1 )) else tst_resm TPASS "$i failed as expected" fi done exit $ec |
From: Garrett C. <yab...@us...> - 2010-02-01 09:16:21
|
Update of /cvsroot/ltp/ltp/testcases/kernel/security In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv23768/security Modified Files: Makefile Log Message: Might help if the logic was actually correct... Signed-off-by: Garrett Cooper <yan...@gm...> Index: Makefile =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/security/Makefile,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** Makefile 1 Feb 2010 09:15:16 -0000 1.13 --- Makefile 1 Feb 2010 09:16:13 -0000 1.14 *************** *** 33,37 **** # XXX (garrcoop): avoid compilation failures on RHEL 5.4, as reported by # Mitani-san, because of policy versioning issues... ! ifneq (1,1) # Omit the selinux-testsuite if -lselinux is missing or the policy-devel # package isn't present. --- 33,39 ---- # XXX (garrcoop): avoid compilation failures on RHEL 5.4, as reported by # Mitani-san, because of policy versioning issues... ! ifeq (1,1) ! FILTER_OUT_DIRS += selinux-testsuite ! else # Omit the selinux-testsuite if -lselinux is missing or the policy-devel # package isn't present. |
From: Garrett C. <yab...@us...> - 2010-02-01 09:15:25
|
Update of /cvsroot/ltp/ltp/testcases/kernel/security In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv23584/security Modified Files: Makefile Log Message: Disable selinux-testsuite for now because the policy file isn't valid on all distros. Signed-off-by: Garrett Cooper <yan...@gm...> Index: Makefile =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/security/Makefile,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** Makefile 28 Jan 2010 15:36:00 -0000 1.12 --- Makefile 1 Feb 2010 09:15:16 -0000 1.13 *************** *** 31,34 **** --- 31,37 ---- endif + # XXX (garrcoop): avoid compilation failures on RHEL 5.4, as reported by + # Mitani-san, because of policy versioning issues... + ifneq (1,1) # Omit the selinux-testsuite if -lselinux is missing or the policy-devel # package isn't present. *************** *** 42,45 **** --- 45,49 ---- endif endif + endif OPT_CFLAGS += -O |
From: Subrata <sub...@us...> - 2010-02-01 09:14:40
|
Update of /cvsroot/ltp/ltp In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv23308/ltp Modified Files: ChangeLog Log Message: Changes for JANUARY 2010. Signed-off-by: Subrata Modak <su...@li...>. Index: ChangeLog =================================================================== RCS file: /cvsroot/ltp/ltp/ChangeLog,v retrieving revision 1.134 retrieving revision 1.135 diff -C2 -d -r1.134 -r1.135 *** ChangeLog 5 Jan 2010 10:03:52 -0000 1.134 --- ChangeLog 1 Feb 2010 09:14:31 -0000 1.135 *************** *** 1,2 **** --- 1,737 ---- + LTP-20100131 + + 1) Log Message: + Fix prep_create_link as noticed by Michal Simek. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Added Files: + ltp/testcases/kernel/syscalls/lchown/prep_create_link + + 2) Log Message: + This change was originally designated for changing a fail to a pass, but morphed into more than that. This takes all of the ad hoc echoes and converts them into tst_resm calls, and makes a few other modifications to called commands and converts them into more simplified logic. Originally (and largely submitted by Serge), modified slightly after some clarification with him. Signed-off-by: Serge E. Hallyn <se...@us...>, Modified-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/testcases/kernel/security/p9auth/p9priv.sh + + 3) Log Message: + Noob mistake: forgot to unawk the awk call. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/testcases/kernel/controllers/cpuctl_fj/run_cpuctl_test_fj.sh + + 4) Log Message: + Actually, that doesn't make sense. No where in the awk call does it actually have awk or the pid listed as being awked. Something else is fishy here... Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/testcases/kernel/controllers/cpuctl_fj/run_cpuctl_test_fj.sh + + 5) Log Message: + In latest ltp version, the following message occured when run the case of cpuset. + ----- + ./cpuset_hotplug_test.sh: line 39: ./cpuset_list_compute: No such file or directory + ./cpuset_hotplug_test.sh: line 227: ./cpuset_list_compute: No such file or directory + ----- + The reason is that cpuset_list_compute.c(in testcases/kernel/controllers/cpuset/cpuset_hotplug_test/) has not been compiled. This patch fix it. Signed-off-by: Shi Weihua <sh...@cn...>, + + Modified Files: + ltp/testcases/kernel/controllers/cpuset/cpuset_hotplug_test/Makefile + + 6) Log Message: + Hi, Thank you for fixing "cgroup" and "cgroup_fj". However, I found a new problem in revised "cgroup" testcases. It's in "cgroup_regression_test.sh". In my original patch, I didn't revise about "tst_kvercmp 2 6 29" judgment. But in fixed version, the error route of above judgment revised from "TBROK" to "TCONF". If "TCONF" is used, the shell should end by exit 0, I think. But "cgroup_regression_test.sh" does not end by exit 0. Please consider about the following patch: Signed-off-by: Tomomori Mitani <mi...@ry...>, + + Modified Files: + ltp/testcases/kernel/controllers/cgroup/cgroup_regression_test.sh + + 7) Log Message: + Shuffle around the code and exit _once_ at the bottom of the child process. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/testcases/kernel/syscalls/nanosleep/nanosleep02.c + + 8) Log Message: + Readd the script so that it gets run when the test is executed... This was in my original patch submission but somehow didn't make its way into the ltp tree. Signed-off-by: Serge E. Hallyn <se...@us...>, Acked-by: Garrett Cooper <yan...@gm...>, + + Added Files: + ltp/testcases/kernel/security/p9auth/checkp9auth.sh + + 9) Log Message: + Fix breakage caused by ltp_clone_quick move. Signed-off-by: Garrett Cooper, + + Modified Files: + ltp/testcases/kernel/security/selinux-testsuite/tests/execshare/Makefile + ltp/testcases/kernel/security/selinux-testsuite/tests/execshare/selinux_execshare_parent.c + + 10) Log Message: + 1. Get rid of ad hoc numaif.h (forgotten delete I was going to do before Christmas... ho ho ho... -_-). + 2. Get rid of nodemask_set (only applies for v2 of libnuma). + Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/testcases/kernel/syscalls/utils/numa_helpers.h + Removed Files: + ltp/testcases/kernel/syscalls/utils/numaif.h + + 11) Log Message: + Added check for memory controller (functional, regression & stress). Signed-off By : Rishikesh K Rajak <ris...@li...>, Acked-by: Li Zefan <li...@cn...>, + + Modified Files: + ltp/testcases/kernel/controllers/test_controllers.sh + ltp/testcases/kernel/controllers/memcg/regression/memcg_regression_test.sh + ltp/testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh + ltp/testcases/kernel/controllers/memcg/functional/memcg_function_test.sh + + 12) Log Message: + Fix the bug of the smaller cpu_set_t's length in getcpu01. getcpu01 test failed because the len of cpu_set_t in the glibc is smaller than the length of the cpumask in the kernel. So we must use the dynamically sized CPU sets instead of the standard cpu_set_t. This patch fix this problem. Before using this patch, the test result is following: + getcpu01 1 TFAIL : sched_getaffinity:errno:22 + After using this patch, the test result is following: + getcpu01 1 TPASS : getcpu() returned proper cpuid:3, node id:0 + Signed-off-by: Miao Xie <mi...@cn...>, + + Modified Files: + ltp/testcases/kernel/syscalls/getcpu/getcpu01.c + + 13) Log Message: + Fix the bug of the smaller cpu_set_t's length in sched_getaffinity01. sched_getaffinity01 test failed because the len of cpu_set_t in the glibc is smaller than the length of the cpumask in the kernel. So we must use the dynamically sized CPU sets instead of the standard cpu_set_t. This patch fix this problem. Before using this patch, the test result is following: + sched_getaffinity01 0 TINFO : system has 4 processor(s). + sched_getaffinity01 1 TPASS : sched_getaffinity(0, len, (cpu_set_t *)-1): TEST_ERRNO=EINVAL(22): Invalid argument + sched_getaffinity01 2 TPASS : sched_getaffinity(0, 0, &mask): TEST_ERRNO=EINVAL(22): Invalid argument + sched_getaffinity01 3 TPASS : sched_getaffinity(getpid() + 1, len, &mask): TEST_ERRNO=EINVAL(22): Invalid argument + sched_getaffinity01 4 TFAIL : could not get cpu affinity: TEST_ERRNO=EINVAL(22): Invalid argument + The subcases1-3 of this test also failed though they were successful according to the log. Becuase the errnos returned were wrong. + After using this patch, the test result is following: + sched_getaffinity01 0 TINFO : system has 4 processor(s). + sched_getaffinity01 0 TINFO : cpusetsize is 512 + sched_getaffinity01 0 TINFO : mask.__bits[0] = 15 + sched_getaffinity01 1 TPASS : sched_getaffinity() succeed ,this process 2239 is running processor: 0 + sched_getaffinity01 2 TPASS : sched_getaffinity() succeed ,this process 2239 is running processor: 1 + sched_getaffinity01 3 TPASS : sched_getaffinity() succeed ,this process 2239 is running processor: 2 + sched_getaffinity01 4 TPASS : sched_getaffinity() succeed ,this process 2239 is running processor: 3 + sched_getaffinity01 5 TPASS : sched_getaffinity(0, len, (cpu_set_t *)-1): TEST_ERRNO=EFAULT(14): Bad address + sched_getaffinity01 6 TPASS : sched_getaffinity(0, 0, mask): TEST_ERRNO=EINVAL(22): Invalid argument + sched_getaffinity01 7 TPASS : sched_getaffinity(getpid() + 1, len, mask): TEST_ERRNO=ESRCH(3): No such process + Signed-off-by: Miao Xie <mi...@cn...>, + + Modified Files: + ltp/testcases/kernel/syscalls/sched_getaffinity/sched_getaffinity01.c + + 14) Log Message: + Here is a patch/attachment to fix the error number and error message, when the capset() syscall fails. + *After applying patch:* + capset01 1 TBROK capget() failed: errno=???(38): Function not implemented + *Before applying patch:* + capset01 1 TBROK capget() failed: TEST_ERRNO=???(0): Success + Note: This is in the custom built linux kernel where the capset/capget syscall is not implemented. In normal linux kernel this testcase would just work fine without any errors. *Normal kernel:* + capset01 1 TPASS : capset() returned 0 + Signed-off-by: Veerendra C <ve...@li...>, + + Modified Files: + ltp/testcases/kernel/syscalls/capset/capset01.c + + 15) Log Message: + Fix check. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/testcases/kernel/controllers/memcg/regression/memcg_regression_test.sh + + 16) Log Message: + Clarify location and roles of install paths and directions as requested by Mark Ver. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/INSTALL + + 17) Log Message: + Fix missing #include. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/testcases/kernel/security/selinux-testsuite/tests/task_setscheduler/selinux_task_setscheduler_target.c + + 18) Log Message: + 1. Fix the all target. + 2. Fix a missing _GNU_SOURCE #define and a -Wunused warning. + Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/testcases/kernel/security/selinux-testsuite/tests/task_setpgid/selinux_task_setpgid_source.c + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/Makefile + + 19) Log Message: + Add a basic Linux distro detection script. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Added Files: + ltp/scripts/detect_distro.sh + + 20) Log Message: + Modify script to properly separate major and minor versions with Redhat. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/scripts/detect_distro.sh + + 21) Log Message: + Improve usability through -d ($DESTDIR) and -m (omit minor version) options. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/scripts/detect_distro.sh + + 22) Log Message: + Stupid... move VERSION set outside of minor version check. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/scripts/detect_distro.sh + + 23) Log Message: + Make a step to properly fix up the Makefile and policy file items... next step would be to template the Makefile to get rid of the ad hoc Makefile in policy_files/redhat-5. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/Makefile + Removed Files: + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_bounds.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_capable_file.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_capable_net.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_capable_sys.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_dyntrace.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_dyntrans.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_entrypoint.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_execshare.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_exectrace.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_execute_no_trans.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_fdreceive.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_file.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_global.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_inherit.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_ioctl.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_ipc.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_link.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_mkdir.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_open.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_ptrace.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_readlink.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_relabel.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_rename.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_rxdir.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_setattr.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_setnice.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_sigkill.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_stat.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_sysctl.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_task_create.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_task_getpgid.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_task_getsched.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_task_getsid.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_task_setpgid.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_task_setsched.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_transition.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/test_wait.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/Makefile + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_capable_file.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_capable_net.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_capable_sys.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_dyntrace.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_dyntrans.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_entrypoint.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_execshare.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_exectrace.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_execute_no_trans.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_fdreceive.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_file.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_global.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_inherit.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_ioctl.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_ipc.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_link.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_mkdir.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_open.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_policy.if + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_ptrace.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_readlink.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_relabel.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_rename.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_rxdir.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_setattr.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_setnice.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_sigkill.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_stat.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_sysctl.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_task_create.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_task_getpgid.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_task_getsched.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_task_getsid.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_task_setpgid.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_task_setsched.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_transition.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/redhat/5/test_wait.te + Added Files: + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/Makefile + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_capable_file.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_capable_net.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_capable_sys.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_dyntrace.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_dyntrans.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_entrypoint.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_execshare.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_exectrace.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_execute_no_trans.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_fdreceive.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_file.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_global.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_inherit.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_ioctl.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_ipc.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_link.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_mkdir.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_open.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_policy.if + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_ptrace.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_readlink.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_relabel.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_rename.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_rxdir.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_setattr.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_setnice.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_sigkill.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_stat.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_sysctl.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_task_create.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_task_getpgid.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_task_getsched.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_task_getsid.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_task_setpgid.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_task_setsched.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_transition.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/redhat-5/test_wait.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_bounds.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_capable_file.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_capable_net.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_capable_sys.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_dyntrace.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_dyntrans.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_entrypoint.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_execshare.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_exectrace.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_execute_no_trans.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_fdreceive.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_file.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_global.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_inherit.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_ioctl.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_ipc.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_link.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_mkdir.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_open.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_ptrace.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_readlink.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_relabel.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_rename.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_rxdir.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_setattr.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_setnice.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_sigkill.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_stat.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_sysctl.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_task_create.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_task_getpgid.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_task_getsched.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_task_getsid.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_task_setpgid.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_task_setsched.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_transition.te + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/policy_files/generic/test_wait.te + + 24) Log Message: + Don't nuke some files that are checked in for test_policy... Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/Makefile + + 25) Log Message: + 1. Change omit_minor_version to omit_redhat_minor_version, as it only applies to redhat's versioning scheme. + 2. Clump Redhat and Fedora detection together like I should have been doing in the beginning. + Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/scripts/detect_distro.sh + + 26) Log Message: + Properly test for whether or not the update string is embedded in the release file with Redhat, and thus properly omit the release version if you're using a non-update version of Redhat or Fedora. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/scripts/detect_distro.sh + + 27) Log Message: + Remove uclinux target warning, considering that no uclinux targets exist anymore.. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/Makefile + + 28) Log Message: + lib-all shouldn't depend on include-install now... Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/Makefile + + 29) Log Message: + 1. Print out the return code. + 2. Use TERRNO because we're not using the TEST() macro. + Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/testcases/kernel/syscalls/quotactl/quotactl01.c + + 30) Log Message: + Add block device detection. It's the first step towards getting the quotactl crud to work. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Added Files: + ltp/lib/get_block_dev.c + Modified Files: + ltp/m4/ltp-quota.m4 + ltp/testcases/kernel/syscalls/quotactl/quotactl01.c + ltp/include/test.h + + 31) Log Message: + Remove return code printout. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/testcases/kernel/syscalls/quotactl/quotactl01.c + + 32) Log Message: + 1. Go back to sys/quota.h + 2. Make the autoconf test a bit more meaningful... + Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/testcases/kernel/syscalls/quotactl/quotactl01.c + ltp/m4/ltp-quota.m4 + + 33) Log Message: + Get closer to getting a working quotactl01 test. There were many setup related items missing, and I'm still bumbling around in the dark trying to figure out how this works, but I'm getting closer to an answer at least... Signed-off-by: Garrett Cooper <yan...@gm...>, + + Added Files: + ltp/lib/mount_utils.c + Removed Files: + ltp/lib/get_block_dev.c + Modified Files: + ltp/include/test.h + ltp/testcases/kernel/syscalls/quotactl/quotactl01.c + + 34) Log Message: + gcov-kernel: added patch for android toolchain 4.4.0 support. Peter Oberparleiter <obe...@us...>, Wangwei Chen <mk...@mo...>, + + Added Files: + ltp/utils/analysis/gcov-kernel/linux-2.6.30-gcov-android-toolchain-4.4.0.patch + + 35) Log Message: + Move $(OUT_OF_BUILDTREE), and $(IN_BUILD_TREE) checks above config.mk include as correctly noted by Mitani-san. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/include/mk/env_pre.mk + + 36) Log Message: + ltp-pan is installed in bin/ not pan/ now as noticed by Serge. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/testscripts/test_containers.sh + ltp/testscripts/test_filecaps.sh + ltp/testscripts/test_selinux.sh + + 37) Log Message: + Remove numaif.h as noticed by Mitani-san. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/testcases/kernel/syscalls/move_pages/move_pages_support.h + + 38) Log Message: + Fix some missing headers and missing #define _GNU_SOURCE defs. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/testcases/kernel/security/selinux-testsuite/tests/dyntrace/selinux_dyntrace_child.c + ltp/testcases/kernel/security/selinux-testsuite/tests/task_getsid/selinux_task_getsid_source.c + ltp/testcases/kernel/security/selinux-testsuite/tests/task_getsid/selinux_task_getsid_target.c + ltp/testcases/kernel/security/selinux-testsuite/tests/task_getpgid/selinux_task_getpgid_source.c + ltp/testcases/kernel/security/selinux-testsuite/tests/task_getpgid/selinux_task_getpgid_target.c + ltp/testcases/kernel/security/selinux-testsuite/tests/task_getscheduler/selinux_task_getscheduler_target.c + ltp/testcases/kernel/security/selinux-testsuite/tests/wait/selinux_wait_parent.c + ltp/testcases/kernel/security/selinux-testsuite/tests/msg/selinux_msgrcv.c + ltp/testcases/kernel/security/selinux-testsuite/tests/msg/selinux_msgsnd.c + + 39) Log Message: + Fix a lot of compile warnings. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/testcases/kernel/security/selinux-testsuite/tests/execshare/selinux_execshare_parent.c + ltp/testcases/kernel/security/selinux-testsuite/tests/capable_net/selinux_bind.c + ltp/testcases/kernel/security/selinux-testsuite/tests/capable_net/selinux_raw.c + ltp/testcases/kernel/security/selinux-testsuite/tests/capable_file/selinux_lease.c + ltp/testcases/kernel/security/selinux-testsuite/tests/capable_sys/selinux_chroot.c + ltp/testcases/kernel/security/selinux-testsuite/tests/capable_sys/selinux_hostname.c + ltp/testcases/kernel/security/selinux-testsuite/tests/capable_sys/selinux_nice.c + ltp/testcases/kernel/security/selinux-testsuite/tests/capable_sys/selinux_rawio.c + ltp/testcases/kernel/security/selinux-testsuite/tests/dyntrace/selinux_dyntrace_parent.c + ltp/testcases/kernel/security/selinux-testsuite/tests/dyntrans/selinux_dyntrans_parent.c + ltp/testcases/kernel/security/selinux-testsuite/tests/shm/selinux_shmat.c + ltp/testcases/kernel/security/selinux-testsuite/tests/task_setnice/selinux_task_setnice_target.c + ltp/testcases/kernel/security/selinux-testsuite/tests/fdreceive/selinux_fdreceive_client.c + ltp/testcases/kernel/security/selinux-testsuite/tests/fdreceive/selinux_fdreceive_server.c + ltp/testcases/kernel/security/selinux-testsuite/tests/sem/selinux_getinfo.c + ltp/testcases/kernel/security/selinux-testsuite/tests/ioctl/selinux_ioctl.c + ltp/testcases/kernel/security/selinux-testsuite/tests/ioctl/selinux_noioctl.c + ltp/testcases/kernel/security/selinux-testsuite/tests/inherit/selinux_inherit_parent.c + ltp/testcases/kernel/security/selinux-testsuite/tests/exectrace/selinux_exectrace_parent.c + ltp/testcases/kernel/security/selinux-testsuite/tests/ptrace/selinux_ptrace.c + ltp/testcases/kernel/security/selinux-testsuite/tests/setnice/selinux_setnice_child.c + ltp/testcases/kernel/security/selinux-testsuite/tests/setnice/selinux_setnice_parent.c + ltp/testcases/kernel/security/selinux-testsuite/tests/file/selinux_fcntl.c + ltp/testcases/kernel/security/selinux-testsuite/tests/file/selinux_nofcntl.c + ltp/testcases/kernel/security/selinux-testsuite/tests/file/selinux_sigiotask.c + ltp/testcases/kernel/security/selinux-testsuite/tests/file/selinux_wait_io.c + + 40) Log Message: + kill unneeded chmod calls on created tmp directory: The following patch kills some unneeded chmod(2) calls on newly created temporary directory; the tst_tmpdir() function do already set the correct permissions. Signed-off-by: Nicolas Joly <nj...@pa...>. + + Modified Files: + ltp/testcases/kernel/syscalls/mkdir/mkdir02.c + ltp/testcases/kernel/syscalls/mkdir/mkdir04.c + ltp/testcases/kernel/syscalls/rename/rename09.c + ltp/testcases/kernel/syscalls/rename/rename12.c + ltp/testcases/kernel/syscalls/rmdir/rmdir03.c + + 41) Log Message: + cpuset_syscall_test: delete '0x' from hex string: By the latest ltp version, the following fail message outputted on my x86_64 box. + ------------ + TEST 5: CPUSET CONTROLLER TESTING + TEST STARTED: Please avoid using system while this test executes + ... + cpuset05 8 TFAIL : Result(/proc/<pid>/status) = "", expect = "0") + cpuset05 9 TFAIL : Result(/proc/<pid>/status) = "", expect = "1") + cpuset05 10 TFAIL : Result(/proc/<pid>/status) = "", expect = "default") + ------------ + The reason is: + 1, '0x' wasn't deleted from a hex string's head. e.g. 7f343c900000 is expected, but 0x7f343c900000 outputted. + 2, a wrong '\b' was used in a grep command. + This patch fix the upper problem. Now the message is: + ------------ + cpuset05 7 TPASS : Cpuset vs systemcall test succeeded. + cpuset05 8 TPASS : Cpuset vs systemcall test succeeded. + cpuset05 9 TPASS : Cpuset vs systemcall test succeeded. + cpuset05 10 TPASS : Cpuset vs systemcall test succeeded. + ------------ + Signed-off-by: Shi Weihua <sh...@cn...>, + + Modified Files: + ltp/testcases/kernel/controllers/cpuset/cpuset_syscall_test/cpuset_syscall_testset.sh + + 42) Log Message: + Make my choice of AC_MSG_ERROR more apparent. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/m4/ltp-quota.m4 + + 43) Log Message: + Things have worked out ok so far for the Makefiles, so let's keep on going trying to fix the selinux test suite (as requested by Steven)... Signed-off-by: Garrett Cooper <yan...@gm...>. + + Modified Files: + ltp/testcases/kernel/security/selinux-testsuite/tests/Makefile + ltp/testcases/kernel/security/selinux-testsuite/tests/Makefile.inc + ltp/testcases/kernel/security/selinux-testsuite/tests/runtest.sh + ltp/testcases/kernel/security/selinux-testsuite/policy/Makefile + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/Makefile + ltp/testscripts/test_selinux.sh + + 44) + Log Message: + We need to install the Makefiles into the tree as well so the test scripts can run make load. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/Makefile + ltp/testcases/kernel/security/selinux-testsuite/policy/Makefile + + 45) Log Message: + Error out when /etc/selinux/.../policy/src isn't found. Signed-off-by: Garrett Cooper <yan...@gm...> + + Modified Files: + ltp/testcases/kernel/security/selinux-testsuite/policy/Makefile + + 46) Log Message: + Don't do load as part of a normal make operation. This splits the make into 2 stages: + 1. The stuff we can do on/off the target. + 2. The setup pieces that we must do on the target. + That way we can clean up 1. in the future so the test won't require make. + Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/Makefile + ltp/testcases/kernel/security/selinux-testsuite/policy/Makefile + + 47) Log Message: + Make autotools seems to break on more recent versions without this. Signed-off-by: Paul Larson <pau...@ca...>, + + Modified Files: + ltp/include/mk/automake.mk + + 48) Log Message: + Add improved checks for mbind(2) syscalls, because... + Hi, + I tried to make with 2010-01-14's cvs in RHEL4.8 (2.6.9-89.ELsmp). But It failed in "mbind01.c" by following message. + ------------ + gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall + -I/home/LTP/ltp-2010-01-12/testcases/kernel/include + -I/home/LTP/ltp-2010-01-12/testcases/kernel/syscalls/mbind/../utils/ + -I../../../../include -I../../../../include -L../../../../lib mbind01.c -lltp -lnuma -o mbind01 + mbind01.c:184: error: `MPOL_DEFAULT' undeclared here (not in a function) + mbind01.c:184: error: initializer element is not constant + mbind01.c:184: error: (near initialization for `tcase[0].policy') + mbind01.c:188: error: initializer element is not constant + mbind01.c:188: error: (near initialization for `tcase[0]') + mbind01.c:190: error: initializer element is not constant + mbind01.c:190: error: (near initialization for `tcase[1].policy') + mbind01.c:194: error: initializer element is not constant + mbind01.c:194: error: (near initialization for `tcase[1]') + mbind01.c:196: error: `MPOL_BIND' undeclared here (not in a function) + mbind01.c:196: error: initializer element is not constant + mbind01.c:196: error: (near initialization for `tcase[2].policy') + mbind01.c:200: error: initializer element is not constant + mbind01.c:200: error: (near initialization for `tcase[2]') + mbind01.c:202: error: initializer element is not constant + mbind01.c:202: error: (near initialization for `tcase[3].policy') + mbind01.c:206: error: initializer element is not constant + mbind01.c:206: error: (near initialization for `tcase[3]') + mbind01.c:208: error: `MPOL_INTERLEAVE' undeclared here (not in a function) + mbind01.c:208: error: initializer element is not constant + mbind01.c:208: error: (near initialization for `tcase[4].policy') + mbind01.c:212: error: initializer element is not constant + mbind01.c:212: error: (near initialization for `tcase[4]') + mbind01.c:214: error: initializer element is not constant + mbind01.c:214: error: (near initialization for `tcase[5].policy') + mbind01.c:218: error: initializer element is not constant + mbind01.c:218: error: (near initialization for `tcase[5]') + mbind01.c:220: error: `MPOL_PREFERRED' undeclared here (not in a function) + mbind01.c:220: error: initializer element is not constant + mbind01.c:220: error: (near initialization for `tcase[6].policy') + mbind01.c:224: error: initializer element is not constant + mbind01.c:224: error: (near initialization for `tcase[6]') + mbind01.c:226: error: initializer element is not constant + mbind01.c:226: error: (near initialization for `tcase[7].policy') + mbind01.c:230: error: initializer element is not constant + mbind01.c:230: error: (near initialization for `tcase[7]') + mbind01.c:236: error: initializer element is not constant + mbind01.c:236: error: (near initialization for `tcase[8]') + mbind01.c:238: error: initializer element is not constant + mbind01.c:238: error: (near initialization for `tcase[9].policy') + mbind01.c:243: error: initializer element is not constant + mbind01.c:243: error: (near initialization for `tcase[9]') + mbind01.c:246: error: initializer element is not constant + mbind01.c:246: error: (near initialization for `tcase[10].policy') + mbind01.c:250: error: initializer element is not constant + mbind01.c:250: error: (near initialization for `tcase[10]') + mbind01.c: In function `do_test': + mbind01.c:309: error: `MPOL_F_ADDR' undeclared (first use in this function) + mbind01.c:309: error: (Each undeclared identifier is reported only once + mbind01.c:309: error: for each function it appears in.) + make[4]: *** [mbind01] Error 1 + ------------ + Following version's cvs's bring same results. + - 2010-01-08 + - 2010-01-12 + - 2010-01-13 + Signed-off-by: Garrett Cooper <yan...@gm...> + + Modified Files: + ltp/testcases/kernel/syscalls/mbind/mbind01.c + ltp/m4/ltp-numa.m4 + + 49) Log Message: + Properly resolve mbind stuff... it was actually mempolicy tests... and it was present in more than just mbind01.c. Signed-off-by: Garrett Cooper <yan...@gm...>. + + Modified Files: + ltp/testcases/kernel/syscalls/mbind/mbind01.c + ltp/testcases/kernel/controllers/cpuset/cpuset_syscall_test/cpuset_syscall_test.c + ltp/testcases/kernel/syscalls/get_mempolicy/get_mempolicy01.c + ltp/testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c + + 50) Log Message: + Finish this mempolicy crud off for good, after a fair amount of tweaking. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c + ltp/m4/ltp-numa.m4 + ltp/testcases/kernel/controllers/cpuset/cpuset_syscall_test/cpuset_syscall_test.c + + 51) Log Message: + 1. Resolve some compatibility issues with make 3.80. + 2. Fix a bug with clean_install_dir being included in `target_to_dir_mapping'... + Signed-off-by: Garrett Cooper <yan...@gm...> + + Modified Files: + ltp/Makefile + + 52) Log Message: + 1. Fix an out-of-sync variable (automake.mk), and an incorrect clean (*.in needs to be cleaned with ac-maintainer-clean, NOT distclean). Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/include/mk/automake.mk + + 53) Log Message: + Get rid of $(DIR) variable in define block. Never should have bloody been there in the first place... stupid stupid. Problem noted by Mitani-san with zip test (defines the same variable). Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/include/mk/functions.mk + + 54) Log Message: + Note the reasoning for the -- before CLEAN_TARGETS :)... Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/include/mk/functions.mk + + 55) Log Message: + Check in skeleton scripts for testing out LTP, end-to-end, from scratch -- that way less trivial issues will get into the tree. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Added Files: + ltp/testscripts/build/README + ltp/testscripts/build/test_install_in_build_tree.sh + ltp/testscripts/build/test_install_out_of_build_tree.sh + ltp/testscripts/build/test_out_of_build_tree.sh + + 56) Log Message: + Move the build scripts to the build directory as well. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Removed Files: + ltp/testscripts/default_runtest_set.awk + ltp/testscripts/ltp-missing-install-files.py + Added Files: + ltp/testscripts/build/default_runtest_set.awk + ltp/testscripts/buildltp-missing-install-files.py + + 57) Log Message: + Keep on working on fixing the selinux-testsuite... Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/Makefile + ltp/testcases/kernel/security/selinux-testsuite/policy/Makefile + ltp/testcases/kernel/security/selinux-testsuite/tests/Makefile.inc + ltp/testscripts/test_selinux.sh + Added Files: + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/Makefile.selinux + ltp/testcases/kernel/security/selinux-testsuite/policy/Makefile.selinux + + 58) Log Message: + Install Makefile.selinux, not Makefile. Signed-off-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/testcases/kernel/security/selinux-testsuite/refpolicy/Makefile + + 59) Log Message: + Further diff on top of the prior one to resolve a few remaining issues in getting the tests to pass. With these two patches, all tests appear to pass on Fedora 12. + Things that remain unresolved: + - RHEL4 support. Is RHEL4 to be supported still by ltp, given dependencies? + RHEL4 has been using the test policy under policy/ and has a different build/load process. + - Running individual tests manually. As described in the selinux-testsuite + README, it used to be possible to run individual tests via tests/runtest.sh + in order to more easily hunt down specific failures and get more verbose output than we get from any of the results/* files. + Signed-off-by: Stephen Smalley <sd...@ty...>, + Acked-by: Garrett Cooper <yan...@gm...>, + + Modified Files: + ltp/testscripts/test_selinux.sh + ltp/testcases/kernel/security/selinux-testsuite/tests/inherit/selinux_inherit.sh + + And much much more......!! + LTP-20091231 |
From: Garrett C. <yab...@us...> - 2010-01-31 23:00:07
|
Update of /cvsroot/ltp/ltp/testcases/commands/at In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv11646/testcases/commands/at Modified Files: at_allow01 at_deny01 Log Message: Apply the rest of the needed cleanup: 1. Add needed variables for tst_resm(1) to function. 2. Fix indentation. Signed-off-by: Garrett Cooper <yan...@gm...> Index: at_allow01 =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/commands/at/at_allow01,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** at_allow01 31 Jan 2010 22:46:15 -0000 1.5 --- at_allow01 31 Jan 2010 22:59:58 -0000 1.6 *************** *** 25,31 **** # # HISTORY: ! # 04/03 Jerone Young (jy...@us...) # TMP=${TMP:=/tmp} allow="/etc/at.allow" --- 25,34 ---- # # HISTORY: ! # 04/03 Jerone Young (jy...@us...) # + export TCID=at_allow01 + export TST_TOTAL=1 + export TST_COUNT=1 TMP=${TMP:=/tmp} allow="/etc/at.allow" *************** *** 42,77 **** do_setup() { ! # Move any files that may get in the way. ! rm "${tmpfile}" >/dev/null 2>&1 ! mv "${allow}" "${allow}.old" >/dev/null 2>&1 ! # Remove users for clean enviroment. ! rm -rf "${test_user1_home}" "${test_user2_home}" ! userdel -r "${test_user1}" >/dev/null 2>&1 ! userdel -r "${test_user2}" >/dev/null 2>&1 ! # Create the 1st user. ! if ! useradd -g users -d "${test_user1_home}" -m "${test_user1}"; then ! echo "Could not add test user ${test_user1} to system." ! exit 1 ! fi ! # Create the 2nd user. ! if ! useradd -g users -d "${test_user2_home}" -m "${test_user2}"; then ! echo "Could not add test user ${test_user2} to system." ! exit 1 ! fi ! # This is the workaround for a potential bug. ! # [Bug 468337] At Refuse to Work with Non-login Shell ! # https://bugzilla.redhat.com/show_bug.cgi?id=468337 ! # As we are running in non-login shell now, we cannot run the script ! # by simply given it a relative path. Therefore, we copy it to test ! # users' home directories, and run it from there. ! cp "$0" "${test_user1_home}" ! cp "$0" "${test_user2_home}" ! # Restart atd daemon. ! /etc/init.d/atd restart } --- 45,80 ---- do_setup() { ! # Move any files that may get in the way. ! rm "${tmpfile}" >/dev/null 2>&1 ! mv "${allow}" "${allow}.old" >/dev/null 2>&1 ! # Remove users for clean enviroment. ! rm -rf "${test_user1_home}" "${test_user2_home}" ! userdel -r "${test_user1}" >/dev/null 2>&1 ! userdel -r "${test_user2}" >/dev/null 2>&1 ! # Create the 1st user. ! if ! useradd -g users -d "${test_user1_home}" -m "${test_user1}"; then ! echo "Could not add test user ${test_user1} to system." ! exit 1 ! fi ! # Create the 2nd user. ! if ! useradd -g users -d "${test_user2_home}" -m "${test_user2}"; then ! echo "Could not add test user ${test_user2} to system." ! exit 1 ! fi ! # This is the workaround for a potential bug. ! # [Bug 468337] At Refuse to Work with Non-login Shell ! # https://bugzilla.redhat.com/show_bug.cgi?id=468337 ! # As we are running in non-login shell now, we cannot run the script ! # by simply given it a relative path. Therefore, we copy it to test ! # users' home directories, and run it from there. ! cp "$0" "${test_user1_home}/." ! cp "$0" "${test_user2_home}/." ! # Restart atd daemon. ! /etc/init.d/atd restart } *************** *** 81,92 **** do_cleanup() { ! # We forcefully remove those files anyway. Otherwise userdel may ! # give us bad warnings. ! rm -rf "${test_user1_home}" "${test_user2_home}" ! userdel -r "${test_user1}" >/dev/null 2>&1 ! userdel -r "${test_user2}" >/dev/null 2>&1 ! rm "${allow}" ! mv "${allow}.old" "${allow}" >/dev/null 2>&1 ! rm "${tmpfile}" >/dev/null 2>&1 } --- 84,95 ---- do_cleanup() { ! # We forcefully remove those files anyway. Otherwise userdel may ! # give us bad warnings. ! rm -rf "${test_user1_home}" "${test_user2_home}" ! userdel -r "${test_user1}" >/dev/null 2>&1 ! userdel -r "${test_user2}" >/dev/null 2>&1 ! rm "${allow}" ! mv "${allow}.old" "${allow}" >/dev/null 2>&1 ! rm "${tmpfile}" >/dev/null 2>&1 } *************** *** 96,146 **** run_test() { ! if [ $(whoami) = "${test_user1}" ]; then ! echo "TEST: $allow should allow only those who in the file to\ ! run jobs." ! echo "(1) TEST THAT PERSON IN ${allow} IS ABLE TO RUN JOB." ! echo "echo 'TEST JOB RAN' >>\"${tmpfile}\" 2>&1" | ! at -m now + 1 minutes ! if [ $? != 0 ]; then ! echo "Error while adding job using at for user ${test_user1}." ! exit 1 ! fi ! echo " Sleeping for 75 seconds...." ! sleep 75 ! exit_code=1 ! test -e "${tmpfile}" && exit_code=0 ! if [ ${exit_code} -eq 1 ]; then ! echo "At did not allow user to execute job, TEST FAILED." else ! echo "At allowed user to execute test job, TEST PASSED." fi rm -f "${tmpfile}" >/dev/null 2>&1 ! exit ${exit_code} ! elif [ $(whoami) = "${test_user2}" ]; then ! echo "(2) TEST PERSON THAT IS NOT IN ${allow} IS NOT ABLE TO\ ! RUN JOB." ! echo "echo 'TEST JOB RAN' >>\"${tmpfile}\" 2>&1" | ! at -m now + 1 minutes ! if [ $? != 0 ]; then ! echo "Expected error while adding job user at for user\ ! ${test_user2}" ! fi echo "Sleeping for 75 seconds...." ! sleep 75 ! exit_code=1 ! test -e "${tmpfile}" || exit_code=0 ! if [ ${exit_code} -eq 1 ]; then ! echo "At allowed user to execute test job, TEST FAILED." ! else ! echo "At did not allow user to execute job, TEST PASSED." ! fi ! rm -f "${tmpfile}" >/dev/null 2>&1 ! exit ${exit_code} ! fi } --- 99,144 ---- run_test() { ! if [ $(whoami) = "${test_user1}" ]; then ! echo "TEST: $allow should allow only those who in the file to run jobs." ! echo "(1) TEST THAT PERSON IN ${allow} IS ABLE TO RUN JOB." ! echo "echo 'TEST JOB RAN' >>\"${tmpfile}\" 2>&1" | ! if ! at -m now + 1 minutes ; then ! echo "Error while adding job using at for user ${test_user1}." ! exit 1 ! fi ! echo " Sleeping for 75 seconds...." ! sleep 75 ! exit_code=1 ! test -e "${tmpfile}" && exit_code=0 ! if [ ${exit_code} -eq 1 ]; then ! tst_resm TFAIL "At did not allow user to execute job" else ! tst_resm TPASS "At allowed user to execute test job" fi rm -f "${tmpfile}" >/dev/null 2>&1 ! exit ${exit_code} ! elif [ $(whoami) = "${test_user2}" ]; then ! echo "(2) TEST PERSON THAT IS NOT IN ${allow} IS NOT ABLE TO RUN JOB." ! echo "echo 'TEST JOB RAN' >>\"${tmpfile}\" 2>&1" | ! if ! at -m now + 1 minutes; then ! echo "Expected error while adding job user at for user ${test_user2}" ! fi echo "Sleeping for 75 seconds...." ! sleep 75 ! exit_code=1 ! test -e "${tmpfile}" || exit_code=0 ! if [ ${exit_code} -eq 1 ]; then ! tst_resm TFAIL "At allowed user to execute test job" ! else ! tst_resm TPASS "At did not allow user to execute job" ! fi ! rm -f "${tmpfile}" >/dev/null 2>&1 ! exit ${exit_code} ! fi } *************** *** 149,171 **** #----------------------------------------------------------------------- if type at > /dev/null; then ! tst_resm TCONF "at command not found on system" elif [ "$(id -ru)" = 0 ]; then ! do_setup ! echo "${test_user1}" >"${allow}" ! exit_code=0 ! ! su "${test_user1}" -lc "${test_user1_home}/$(basename $0)" ! if [ $? != 0 ]; then ! exit_code=1 ! fi ! ! su "${test_user2}" -lc "${test_user2_home}/$(basename $0)" ! if [ $? != 0 ]; then ! exit_code=1 ! fi ! do_cleanup ! exit ${exit_code} else ! run_test ! exit 0 fi --- 147,172 ---- #----------------------------------------------------------------------- if type at > /dev/null; then ! tst_resm TCONF "at command not found on system" elif [ "$(id -ru)" = 0 ]; then ! if do_setup; then ! ! if ! echo "${test_user1}" >"${allow}"; then ! exit_code=1 ! elif ! su "${test_user1}" -lc "${test_user1_home}/${0##*/}"; then ! exit_code=1 ! elif ! su "${test_user2}" -lc "${test_user2_home}/${0##*/}"; then ! exit_code=1 ! else ! exit_code=0 ! fi ! ! do_cleanup ! ! else ! exit_code=1 ! fi ! exit ${exit_code} else ! run_test ! exit 0 fi Index: at_deny01 =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/commands/at/at_deny01,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** at_deny01 31 Jan 2010 22:43:27 -0000 1.5 --- at_deny01 31 Jan 2010 22:59:58 -0000 1.6 *************** *** 25,31 **** # # HISTORY: ! # 04/03 Jerone Young (jy...@us...) # TMP=${TMP:=/tmp} deny="/etc/at.deny" --- 25,34 ---- # # HISTORY: ! # 04/03 Jerone Young (jy...@us...) # + export TCID=at_deny01 + export TST_TOTAL=1 + export TST_COUNT=1 TMP=${TMP:=/tmp} deny="/etc/at.deny" *************** *** 42,83 **** do_setup() { ! # Move any files that may get in the way. ! rm "${tmpfile}" >/dev/null 2>&1 ! mv "${deny}" "${deny}.old" >/dev/null 2>&1 ! # if /etc/at.allow is there, /etc/at.deny will be ignored. So, we ! # need to remove it first. ! if [ -f "/etc/at.allow" ]; then ! mv /etc/at.allow /etc/at.allow.old ! fi ! # Remove users for clean enviroment. ! rm -rf "${test_user1_home}" "${test_user2_home}" ! userdel -r "${test_user1}" >/dev/null 2>&1 ! userdel -r "${test_user2}" >/dev/null 2>&1 ! # Create the 1st user. ! if ! useradd -g users -d "${test_user1_home}" -m "${test_user1}"; then ! echo "Could not add test user ${test_user1} to system." ! exit 1 ! fi ! # Create the 2nd user. ! if ! useradd -g users -d "${test_user2_home}" -m "${test_user2}"; then ! echo "Could not add test user ${test_user2} to system." ! exit 1 ! fi ! # This is the workaround for a potential bug. ! # [Bug 468337] At Refuse to Work with Non-login Shell ! # https://bugzilla.redhat.com/show_bug.cgi?id=468337 ! # As we are running in non-login shell now, we cannot run the script ! # by simply given it a relative path. Therefore, we copy it to test ! # users' home directories, and run it from there. ! cp "$0" "${test_user1_home}" ! cp "$0" "${test_user2_home}" ! # Restart atd daemon. ! /etc/init.d/atd restart } --- 45,86 ---- do_setup() { ! # Move any files that may get in the way. ! rm "${tmpfile}" >/dev/null 2>&1 ! mv "${deny}" "${deny}.old" >/dev/null 2>&1 ! # if /etc/at.allow is there, /etc/at.deny will be ignored. So, we ! # need to remove it first. ! if [ -f "/etc/at.allow" ]; then ! mv /etc/at.allow /etc/at.allow.old ! fi ! # Remove users for clean enviroment. ! rm -rf "${test_user1_home}" "${test_user2_home}" ! userdel -r "${test_user1}" >/dev/null 2>&1 ! userdel -r "${test_user2}" >/dev/null 2>&1 ! # Create the 1st user. ! if ! useradd -g users -d "${test_user1_home}" -m "${test_user1}"; then ! echo "Could not add test user ${test_user1} to system." ! exit 1 ! fi ! # Create the 2nd user. ! if ! useradd -g users -d "${test_user2_home}" -m "${test_user2}"; then ! echo "Could not add test user ${test_user2} to system." ! exit 1 ! fi ! # This is the workaround for a potential bug. ! # [Bug 468337] At Refuse to Work with Non-login Shell ! # https://bugzilla.redhat.com/show_bug.cgi?id=468337 ! # As we are running in non-login shell now, we cannot run the script ! # by simply given it a relative path. Therefore, we copy it to test ! # users' home directories, and run it from there. ! cp "$0" "${test_user1_home}/." ! cp "$0" "${test_user2_home}/." ! # Restart atd daemon. ! /etc/init.d/atd restart } *************** *** 87,102 **** do_cleanup() { ! # We forcefully remove those files anyway. Otherwise userdel may ! # give us bad warnings. ! rm -rf "${test_user1_home}" "${test_user2_home}" ! userdel -r "${test_user1}" >/dev/null 2>&1 ! userdel -r "${test_user2}" >/dev/null 2>&1 ! rm "${deny}" ! mv "${deny}.old" "${deny}" >/dev/null 2>&1 ! rm "${tmpfile}" >/dev/null 2>&1 ! if [ -f /etc/at.allow.old ]; then ! mv /etc/at.allow.old /etc/at.allow ! fi } --- 90,105 ---- do_cleanup() { ! # We forcefully remove those files anyway. Otherwise userdel may ! # give us bad warnings. ! rm -rf "${test_user1_home}" "${test_user2_home}" ! userdel -r "${test_user1}" >/dev/null 2>&1 ! userdel -r "${test_user2}" >/dev/null 2>&1 ! rm "${deny}" ! mv "${deny}.old" "${deny}" >/dev/null 2>&1 ! rm "${tmpfile}" >/dev/null 2>&1 ! if [ -f /etc/at.allow.old ]; then ! mv /etc/at.allow.old /etc/at.allow ! fi } *************** *** 106,156 **** run_test() { ! if [ $(whoami) = "${test_user1}" ]; then ! echo "TEST: ${deny} should deny only those who are not in the\ ! file to run jobs." ! echo "(1) TEST THAT PERSON NOT IN ${deny} IS ABLE TO RUN JOB." ! echo "echo 'TEST JOB RAN' >>\"${tmpfile}\" 2>&1" | ! at -m now + 1 minutes ! if [ $? != 0 ]; then ! echo "Error while adding job using at for user ${test_user1}." ! exit 1 ! fi ! echo " Sleeping for 75 seconds...." ! sleep 75 ! exit_code=1 ! test -e "${tmpfile}" && exit_code=0 ! if [ ${exit_code} -eq 1 ]; then ! echo "At denyed user to execute test job, TEST FAILED." ! else ! echo "At did not deny user to execute job, TEST PASSED." ! fi ! rm -f "${tmpfile}" >/dev/null 2>&1 ! exit ${exit_code} ! elif [ $(whoami) = "${test_user2}" ]; then ! echo "(2) TEST THAT PERSON IN ${deny} IS NOT ABLE TO RUN JOB." ! ! echo "echo 'TEST JOB RAN' >>\"${tmpfile}\" 2>&1" | ! at -m now + 1 minutes ! if [ $? != 0 ]; then ! echo "Expected error while adding job user at for user\ ! ${test_user2}" ! fi ! echo "Sleeping for 75 seconds...." ! sleep 75 ! exit_code=1 ! test -e "${tmpfile}" || exit_code=0 ! if [ ${exit_code} -eq 1 ]; then ! echo "At did not deny user to execute job, TEST FAILED." ! else ! echo "At denyed user to execute test job, TEST PASSED." ! fi ! rm -f "${tmpfile}" >/dev/null 2>&1 ! exit ${exit_code} ! fi } --- 109,156 ---- run_test() { ! if [ $(whoami) = "${test_user1}" ]; then ! echo "TEST: ${deny} should deny only those who are not in the file to run jobs." ! echo "(1) TEST THAT PERSON NOT IN ${deny} IS ABLE TO RUN JOB." ! echo "echo 'TEST JOB RAN' >>\"${tmpfile}\" 2>&1" | ! if ! at -m now + 1 minutes; then ! echo "Error while adding job using at for user ${test_user1}." ! exit 1 ! fi ! echo " Sleeping for 75 seconds...." ! sleep 75 ! exit_code=1 ! test -e "${tmpfile}" && exit_code=0 ! if [ ${exit_code} -eq 1 ]; then ! tst_resm TFAIL "At denyed user to execute test job" ! else ! tst_resm TPASS "At did not deny user to execute job" ! fi ! rm -f "${tmpfile}" >/dev/null 2>&1 ! exit ${exit_code} ! elif [ $(whoami) = "${test_user2}" ]; then ! echo "(2) TEST THAT PERSON IN ${deny} IS NOT ABLE TO RUN JOB." ! echo "echo 'TEST JOB RAN' >>\"${tmpfile}\" 2>&1" | ! if ! at -m now + 1 minutes; then ! echo "Expected error while adding job user at for user ${test_user2}" ! fi ! echo "Sleeping for 75 seconds...." ! sleep 75 ! exit_code=1 ! test -e "${tmpfile}" || exit_code=0 ! if [ ${exit_code} -eq 1 ]; then ! echo "At did not deny user to execute job, TEST FAILED." ! else ! echo "At denyed user to execute test job, TEST PASSED." ! fi ! ! rm -f "${tmpfile}" >/dev/null 2>&1 ! exit ${exit_code} ! ! fi } *************** *** 159,177 **** #----------------------------------------------------------------------- if type at > /dev/null; then ! tst_resm TCONF "at command not found on system" elif [ "$(id -ru)" = 0 ]; then ! do_setup ! echo "${test_user2}" >"${deny}" ! exit_code=0 ! ! if ! su "${test_user1}" -lc "${test_user1_home}/${0##*/}" ; then ! exit_code=1 ! elif ! su "${test_user2}" -lc "${test_user2_home}/${0##*/}"; then ! exit_code=1 ! fi ! do_cleanup ! exit ${exit_code} else ! run_test ! exit 0 fi --- 159,181 ---- #----------------------------------------------------------------------- if type at > /dev/null; then ! tst_resm TCONF "at command not found on system" elif [ "$(id -ru)" = 0 ]; then ! if do_setup ; then ! if ! echo "${test_user2}" >"${deny}"; then ! exit_code=1 ! elif ! su "${test_user1}" -lc "${test_user1_home}/${0##*/}"; then ! exit_code=1 ! elif ! su "${test_user2}" -lc "${test_user2_home}/${0##*/}"; then ! exit_code=1 ! else ! exit_code=0 ! fi ! do_cleanup ! else ! exit_code=1 ! fi ! exit ${exit_code} else ! run_test ! exit 0 fi |
From: Garrett C. <yab...@us...> - 2010-01-31 22:46:23
|
Update of /cvsroot/ltp/ltp/testcases/commands/at In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv10202/testcases/commands/at Modified Files: at_allow01 Log Message: 1. Correct some style notes. 2. Add a check for the at command. 3. Parameterize $TMP. Signed-off-by: Garrett Cooper <yan...@gm...> Index: at_allow01 =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/commands/at/at_allow01,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** at_allow01 23 Aug 2009 06:31:45 -0000 1.4 --- at_allow01 31 Jan 2010 22:46:15 -0000 1.5 *************** *** 28,31 **** --- 28,32 ---- # + TMP=${TMP:=/tmp} allow="/etc/at.allow" test_user1="test_user_1" *************** *** 33,37 **** test_user2_home="/home/${test_user2}" test_user1_home="/home/${test_user1}" ! tmpfile="/tmp/at_allow_test" #----------------------------------------------------------------------- --- 34,38 ---- test_user2_home="/home/${test_user2}" test_user1_home="/home/${test_user1}" ! tmpfile="$TMP/at_allow_test" #----------------------------------------------------------------------- *************** *** 51,56 **** # Create the 1st user. ! useradd -g users -d "${test_user1_home}" -m "${test_user1}" ! if [ $? != 0 ]; then echo "Could not add test user ${test_user1} to system." exit 1 --- 52,56 ---- # Create the 1st user. ! if ! useradd -g users -d "${test_user1_home}" -m "${test_user1}"; then echo "Could not add test user ${test_user1} to system." exit 1 *************** *** 58,63 **** # Create the 2nd user. ! useradd -g users -d "${test_user2_home}" -m "${test_user2}" ! if [ $? != 0 ]; then echo "Could not add test user ${test_user2} to system." exit 1 --- 58,62 ---- # Create the 2nd user. ! if ! useradd -g users -d "${test_user2_home}" -m "${test_user2}"; then echo "Could not add test user ${test_user2} to system." exit 1 *************** *** 149,153 **** # FUNCTION: main #----------------------------------------------------------------------- ! if [ $(whoami) = "root" ]; then do_setup echo "${test_user1}" >"${allow}" --- 148,154 ---- # FUNCTION: main #----------------------------------------------------------------------- ! if type at > /dev/null; then ! tst_resm TCONF "at command not found on system" ! elif [ "$(id -ru)" = 0 ]; then do_setup echo "${test_user1}" >"${allow}" |
From: Garrett C. <yab...@us...> - 2010-01-31 22:43:35
|
Update of /cvsroot/ltp/ltp/testcases/commands/at In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv9871/testcases/commands/at Modified Files: at_deny01 Log Message: 1. Correct some style notes. 2. Add a check for the at command. 3. Parameterize $TMP. Signed-off-by: Garrett Cooper <yan...@gm...> Index: at_deny01 =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/commands/at/at_deny01,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** at_deny01 23 Aug 2009 06:31:45 -0000 1.4 --- at_deny01 31 Jan 2010 22:43:27 -0000 1.5 *************** *** 28,31 **** --- 28,32 ---- # + TMP=${TMP:=/tmp} deny="/etc/at.deny" test_user1="test_user_1" *************** *** 33,37 **** test_user2_home="/home/${test_user2}" test_user1_home="/home/${test_user1}" ! tmpfile="/tmp/at_deny_test" #----------------------------------------------------------------------- --- 34,38 ---- test_user2_home="/home/${test_user2}" test_user1_home="/home/${test_user1}" ! tmpfile="$TMP/at_deny_test" #----------------------------------------------------------------------- *************** *** 57,62 **** # Create the 1st user. ! useradd -g users -d "${test_user1_home}" -m "${test_user1}" ! if [ $? != 0 ]; then echo "Could not add test user ${test_user1} to system." exit 1 --- 58,62 ---- # Create the 1st user. ! if ! useradd -g users -d "${test_user1_home}" -m "${test_user1}"; then echo "Could not add test user ${test_user1} to system." exit 1 *************** *** 64,69 **** # Create the 2nd user. ! useradd -g users -d "${test_user2_home}" -m "${test_user2}" ! if [ $? != 0 ]; then echo "Could not add test user ${test_user2} to system." exit 1 --- 64,68 ---- # Create the 2nd user. ! if ! useradd -g users -d "${test_user2_home}" -m "${test_user2}"; then echo "Could not add test user ${test_user2} to system." exit 1 *************** *** 112,116 **** echo "(1) TEST THAT PERSON NOT IN ${deny} IS ABLE TO RUN JOB." echo "echo 'TEST JOB RAN' >>\"${tmpfile}\" 2>&1" | ! at -m now + 1 minutes if [ $? != 0 ]; then echo "Error while adding job using at for user ${test_user1}." --- 111,115 ---- echo "(1) TEST THAT PERSON NOT IN ${deny} IS ABLE TO RUN JOB." echo "echo 'TEST JOB RAN' >>\"${tmpfile}\" 2>&1" | ! at -m now + 1 minutes if [ $? != 0 ]; then echo "Error while adding job using at for user ${test_user1}." *************** *** 153,157 **** rm -f "${tmpfile}" >/dev/null 2>&1 exit ${exit_code} ! fi } --- 152,156 ---- rm -f "${tmpfile}" >/dev/null 2>&1 exit ${exit_code} ! fi } *************** *** 159,174 **** # FUNCTION: main #----------------------------------------------------------------------- ! if [ $(whoami) = "root" ]; then do_setup echo "${test_user2}" >"${deny}" exit_code=0 ! ! su "${test_user1}" -lc "${test_user1_home}/$(basename $0)" ! if [ $? != 0 ]; then exit_code=1 ! fi ! ! su "${test_user2}" -lc "${test_user2_home}/$(basename $0)" ! if [ $? != 0 ]; then exit_code=1 fi --- 158,171 ---- # FUNCTION: main #----------------------------------------------------------------------- ! if type at > /dev/null; then ! tst_resm TCONF "at command not found on system" ! elif [ "$(id -ru)" = 0 ]; then do_setup echo "${test_user2}" >"${deny}" exit_code=0 ! ! if ! su "${test_user1}" -lc "${test_user1_home}/${0##*/}" ; then exit_code=1 ! elif ! su "${test_user2}" -lc "${test_user2_home}/${0##*/}"; then exit_code=1 fi |
From: Garrett C. <yab...@us...> - 2010-01-31 07:38:32
|
Update of /cvsroot/ltp/ltp/testscripts/build In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv21131/testscripts/build Modified Files: build_test_function.sh Log Message: 1. Make CVSROOT parameterizable. 2. Fix sudo support. 3. Export compiler-specific variables to test_ltp process, properly. 4. Do proper work with $PATH, variable setting, etc. 5. Simplify mktemp -d logic with a little bit of reflection ala eval(1). Signed-off-by: Garrett Cooper <yan...@gm...> Index: build_test_function.sh =================================================================== RCS file: /cvsroot/ltp/ltp/testscripts/build/build_test_function.sh,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** build_test_function.sh 31 Jan 2010 01:51:59 -0000 1.6 --- build_test_function.sh 31 Jan 2010 07:38:24 -0000 1.7 *************** *** 28,55 **** testscript_dir=$(readlink -f "${0%/*}") unset vars ! if tmp_builddir=$(mktemp -d) ; then ! vars="$vars $tmp_builddir" ! else ! echo "${0##*/}: failed to create tmp_builddir"; ! false ! fi ! if tmp_destdir=$(mktemp -d) ; then ! vars="$vars $tmp_destdir" ! else ! echo "${0##*/}: failed to create tmp_destdir"; ! false ! fi ! if tmp_prefix=$(mktemp -d) ; then ! vars="$vars $tmp_prefix" ! else ! echo "${0##*/}: failed to create tmp_prefix"; ! false ! fi ! if tmp_srcdir=$(mktemp -d) ; then ! vars="$vars $tmp_srcdir" ! else ! echo "${0##*/}: failed to create tmp_srcdir"; ! false ! fi trap cleanup EXIT cat <<EOF --- 28,34 ---- testscript_dir=$(readlink -f "${0%/*}") unset vars ! for i in tmp_builddir tmp_destdir tmp_prefix tmp_srcdir; do ! eval "if $i=\$(mktemp -d) ; then vars=\"\$vars \$${i}\"; else echo ${0##*/}: failed to create temporary directory for $i; false; fi" ! done trap cleanup EXIT cat <<EOF *************** *** 71,75 **** # - 1 -> clean. cleanup() { ! if [ "x${CLEAN_TEMPFILES:-1}" = x1 ] ; then cd / trap '' EXIT --- 50,54 ---- # - 1 -> clean. cleanup() { ! if [ "x${CLEAN_TEMPFILES:-0}" = x1 -a "x${TEST_PASSED:-0}" = x1 ] ; then cd / trap '' EXIT *************** *** 81,88 **** cvs_pull() { ! export CVSROOT=:pserver:ano...@lt...:/cvsroot/ltp if ( [ -f ~/.cvspass ] || touch ~/.cvspass ) ; then ! cvs -d$CVSROOT login && cvs -z3 export -f -r HEAD ltp && srcdir="$PWD/ltp" fi --- 60,68 ---- cvs_pull() { ! export CVSROOT=${CVSROOT:=:pserver:ano...@lt...:/cvsroot/ltp} if ( [ -f ~/.cvspass ] || touch ~/.cvspass ) ; then ! echo "$CVSROOT" | grep -v '^:pserver:' || cvs -d$CVSROOT login ! cvs -z3 export -f -r HEAD ltp && srcdir="$PWD/ltp" fi *************** *** 135,139 **** autotools ! cd "$2" && "$1/configure" ${3:+--prefix=$("$abspath" $3)} } --- 115,119 ---- autotools ! cd "$2" && "$1/configure" ${3:+--prefix=$("$abspath" "$3")} } *************** *** 176,180 **** test_ltp() { ! test_ltp="${1:-.}/test_ltp.sh" # XXX (garrcoop): I haven't tracked down the root cause for the --- 156,161 ---- test_ltp() { ! installdir=$(readlink -f "${1:-.}") ! test_ltp="$installdir/test_ltp.sh" # XXX (garrcoop): I haven't tracked down the root cause for the *************** *** 183,208 **** # platforms when executing runltp. Thus, we should effectively close # /dev/stdin before executing runltp via execltp. ! echo "${1:-.}/bin/execltp < /dev/null" > "$test_ltp" ! if [ "x${1}" != x ] ; then ! export LTPROOT="$1" ! fi if [ "x$(id -ru)" != "x0" ] ; then ! if type su > /dev/null && groups | grep wheel ; then ! PRE_CMD="su -c" ! elif type sudo > /dev/null && sudo sh -c 'exit 0' ; then ! PRE_CMD="sudo --" fi ! if [ "x$PRE_CMD" != x ] ; then ! echo "chown -Rf $(id -ru) *" >> "$test_ltp" ! CMD="${PRE_CMD} '$test_ltp'" fi fi ! echo "${0##*/}: will execute test_ltp $CMD" chmod +x "$test_ltp" # XXX (garrcoop): uncommenting the following would work around a --- 164,209 ---- # platforms when executing runltp. Thus, we should effectively close # /dev/stdin before executing runltp via execltp. ! cat <<EOF > "$test_ltp" ! #!/bin/sh ! export AR="$AR" ! export ARFLAGS="$ARFLAGS" ! export CC="$CC" ! export CFLAGS="$CFLAGS" ! export CXX="$CXX" ! export CXXFLAGS="$CXXFLAGS" ! export LD="$LD" ! export LDFLAGS="$LDFLAGS" ! export NM="$NM" ! ! # Optional variables required for some of the testcases. ! for i in AR ARFLAGS CC CFLAGS CXX CXXFLAGS LD LDFLAGS NM; do ! eval "[ \"x\\\$\$i\" = x ] && unset \$i" ! done ! ! export LTPROOT="$LTPROOT" ! export PATH="\$PATH:$installdir/bin:$PATH" ! ! execltp -l "$installdir" -vv < /dev/null ! EOF ! ! pre_cmd= if [ "x$(id -ru)" != "x0" ] ; then ! # Make sure that environment is translated properly with sudo. ! if type sudo > /dev/null && sudo -- sh -c 'exit 0' ; then ! pre_cmd='sudo --' ! elif type su > /dev/null && groups | grep wheel ; then ! pre_cmd='su -c' fi ! if [ "x$pre_cmd" != x ] ; then ! echo "chown -Rf $(id -ru) \"$installdir\"" >> "$test_ltp" fi fi ! echo "${0##*/}: will execute test_ltp via ${pre_cmd:-$pre_cmd }$test_ltp" chmod +x "$test_ltp" # XXX (garrcoop): uncommenting the following would work around a *************** *** 212,217 **** # cat all output to a log, just tail -f it and enter in your password # when necessary. ! #${CMD} > /dev/tty 2>&1 ! ${CMD} } --- 213,218 ---- # cat all output to a log, just tail -f it and enter in your password # when necessary. ! #${pre_cmd} "${test_ltp}" > /dev/tty 2>&1 && TEST_PASSED=1 ! ${pre_cmd} "${test_ltp}" && TEST_PASSED=1 } |
From: Garrett C. <yab...@us...> - 2010-01-31 07:29:37
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/swapon In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv20214/testcases/kernel/syscalls/swapon Modified Files: swapon03.c Log Message: 1. create_swapfile doesn't set errno to any usable value. 2. Provide better diagnostics for when mkswap fails. Signed-off-by: Garrett Cooper <yan...@gm...> Index: swapon03.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/swapon/swapon03.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** swapon03.c 26 Nov 2009 14:11:35 -0000 1.9 --- swapon03.c 31 Jan 2010 07:29:25 -0000 1.10 *************** *** 286,290 **** /* Create the swapfile */ if (create_swapfile(filename, bs, count) < 0) { ! tst_brkm(TFAIL | TERRNO, cleanup, "Failed to create swapfile for the test"); } --- 286,290 ---- /* Create the swapfile */ if (create_swapfile(filename, bs, count) < 0) { ! tst_brkm(TFAIL, cleanup, "Failed to create swapfile for the test"); } *************** *** 347,351 **** } if (system(cmd_buffer) != 0) { ! tst_resm(TWARN, "failed to make swap file %s", swapfile); return -1; } --- 347,352 ---- } if (system(cmd_buffer) != 0) { ! tst_resm(TWARN, "failed to make swap file %s via command %s", ! swapfile, cmd_buffer); return -1; } |
From: Garrett C. <yab...@us...> - 2010-01-31 01:52:07
|
Update of /cvsroot/ltp/ltp/testscripts/build In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv4180 Modified Files: build_test_function.sh Log Message: Don't forget to call false in the event of setup failure because we don't want things to silently pass if the directories couldn't be created... Signed-off-by: Garrett Cooper <yan...@gm...> Index: build_test_function.sh =================================================================== RCS file: /cvsroot/ltp/ltp/testscripts/build/build_test_function.sh,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** build_test_function.sh 31 Jan 2010 01:49:48 -0000 1.5 --- build_test_function.sh 31 Jan 2010 01:51:59 -0000 1.6 *************** *** 32,35 **** --- 32,36 ---- else echo "${0##*/}: failed to create tmp_builddir"; + false fi if tmp_destdir=$(mktemp -d) ; then *************** *** 37,40 **** --- 38,42 ---- else echo "${0##*/}: failed to create tmp_destdir"; + false fi if tmp_prefix=$(mktemp -d) ; then *************** *** 42,45 **** --- 44,48 ---- else echo "${0##*/}: failed to create tmp_prefix"; + false fi if tmp_srcdir=$(mktemp -d) ; then *************** *** 47,50 **** --- 50,54 ---- else echo "${0##*/}: failed to create tmp_srcdir"; + false fi trap cleanup EXIT |