Changeset f4c628c
- Timestamp:
- 04/03/2007 12:21:48 PM (17 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 9e85ca2
- Parents:
- 85d8df5
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter01/changelog.xml
r85d8df5 rf4c628c 36 36 </listitem> 37 37 --> 38 39 <listitem> 40 <para>2007-04-03</para> 41 <itemizedlist> 42 <listitem> 43 <para>[jhuntwork] - Install su from coreutils in chapter 5 as su-tools. 44 Use su-tools to run test suites from coreutils and bash as user nobody. 45 Fixes #1877.</para> 46 </listitem> 47 </itemizedlist> 48 </listitem> 49 38 50 <listitem> 39 51 <para>2007-04-01</para> -
chapter05/coreutils.xml
r85d8df5 rf4c628c 57 57 <screen><userinput>make install</userinput></screen> 58 58 59 <para>The above command refuses to install <filename>su</filename> 60 because it cannot install it setuid root as a non-privileged user. By 61 manually installing it with a different name, we can use it for running 62 tests in the final system as a non-privileged user and we keep a possibly 63 useful <command>su</command> from our host first place in our PATH. Install 64 it with:</para> 65 66 <screen><userinput>cp -v src/su /tools/bin/su-tools</userinput></screen> 67 59 68 </sect2> 60 69 -
chapter06/bash.xml
r85d8df5 rf4c628c 71 71 <screen><userinput>make</userinput></screen> 72 72 73 <para>To test the results, issue: 74 <userinput>make tests</userinput>.</para> 73 <para>To test the results, issue:</para> 74 75 <screen><userinput>chown -Rv nobody ./ 76 su-tools nobody -s /bin/bash -c "make tests"</userinput></screen> 75 77 76 78 <para>Install the package:</para> -
chapter06/coreutils.xml
r85d8df5 rf4c628c 73 73 <screen><userinput>make</userinput></screen> 74 74 75 <para>The test suite of Coreutils makes several assumptions about the 76 presence of system users and groups that are not valid within the minimal 77 environment that exists at the moment. Therefore, additional items need 78 to be set up before running the tests. Skip down to <quote>Install the 75 <para>Skip down to <quote>Install the 79 76 package</quote> if not running the test suite.</para> 80 81 <para>Create two dummy groups and a dummy user:</para>82 83 <screen><userinput>echo "dummy1:x:1000:" >> /etc/group84 echo "dummy2:x:1001:dummy" >> /etc/group85 echo "dummy:x:1000:1000::/root:/bin/bash" >> /etc/passwd</userinput></screen>86 77 87 78 <para>Now the test suite is ready to be run. First, run the tests that are 88 79 meant to be run as user <systemitem class="username">root</systemitem>:</para> 89 80 90 <screen><userinput>make NON_ROOT_USERNAME= dummy check-root</userinput></screen>81 <screen><userinput>make NON_ROOT_USERNAME=nobody check-root</userinput></screen> 91 82 92 83 <para>Then run the remainder of the tests as the 93 <systemitem class="username">dummy</systemitem> user:</para> 94 95 <screen><userinput>src/su dummy -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen> 96 97 <para>When testing is complete, remove the dummy user and groups:</para> 98 99 <screen><userinput>sed -i '/dummy/d' /etc/passwd /etc/group</userinput></screen> 84 <systemitem class="username">nobody</systemitem> user:</para> 85 86 <screen><userinput>su-tools nobody -s /bin/bash -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen> 100 87 101 88 <para>Install the package:</para> -
general.ent
r85d8df5 rf4c628c 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!ENTITY version "SVN-2007040 1">3 <!ENTITY releasedate "April 1, 2007">2 <!ENTITY version "SVN-20070403"> 3 <!ENTITY releasedate "April 3, 2007"> 4 4 <!ENTITY milestone "6.3"> 5 5 <!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
Note:
See TracChangeset
for help on using the changeset viewer.