]> git.pld-linux.org Git - packages/coreutils.git/blobdiff - coreutils-selinux.patch
- properly pass pam libs
[packages/coreutils.git] / coreutils-selinux.patch
index 07eda680cf8d76fd0fe98748c992974861f5c418..fc3e3d10e2368c72d30d82361e38d99618b45567 100644 (file)
@@ -10,8 +10,8 @@ diff -Nur coreutils-6.4/README coreutils-6.4.selinux/README
    dd df dir dircolors dirname du echo env expand expr factor false fmt fold
    ginstall groups head hostid hostname id join kill link ln logname ls
    md5sum mkdir mkfifo mknod mv nice nl nohup od paste pathchk pinky pr
--  printenv printf ptx pwd readlink rm rmdir seq sha1sum sha224sum sha256sum
-+  printenv printf ptx pwd readlink rm rmdir runcon seq sha1sum sha224sum sha256sum
+-  printenv printf ptx pwd readlink rm rmdir runuser seq sha1sum sha224sum sha256sum
++  printenv printf ptx pwd readlink rm rmdir runuser runcon seq sha1sum sha224sum sha256sum
    sha384sum sha512sum shred shuf sleep sort split stat stty su sum sync tac
    tail tee test touch tr true tsort tty uname unexpand uniq unlink uptime
    users vdir wc who whoami yes
@@ -392,8 +392,8 @@ diff -Nur coreutils-6.4/po/POTFILES.in coreutils-6.4.selinux/po/POTFILES.in
  src/seq.c
  src/setuidgid.c
  src/shred.c
---- coreutils-6.5/po/pl.po.orig        2006-11-22 11:21:36.559505000 +0100
-+++ coreutils-6.5/po/pl.po     2006-11-22 11:43:21.989505000 +0100
+--- coreutils-6.7/po/pl.po.orig        2006-12-09 20:03:10.686071942 +0100
++++ coreutils-6.7/po/pl.po     2006-12-09 20:06:54.942851606 +0100
 @@ -867,6 +867,95 @@
  msgid "%s: input file is output file"
  msgstr "%s: plik wej¶ciowy jest plikiem wyj¶ciowym"
@@ -487,7 +487,7 @@ diff -Nur coreutils-6.4/po/POTFILES.in coreutils-6.4.selinux/po/POTFILES.in
 +msgid "conflicting security context specifiers given"
 +msgstr "konflikt miêdzy podanymi okre¶leniami kontekstu bezpieczeñstwa"
 +
- #: src/chgrp.c:95 src/install.c:613
+ #: src/chgrp.c:95 src/install.c:611
  #, c-format
  msgid "invalid group %s"
 @@ -1540,6 +1629,21 @@
@@ -509,7 +509,7 @@ diff -Nur coreutils-6.4/po/POTFILES.in coreutils-6.4.selinux/po/POTFILES.in
 +msgid "cannot lgetfilecon %s"
 +msgstr "nie mo¿na wykonaæ lgetfilecon %s"
 +
- #: src/copy.c:1487
+ #: src/copy.c:1553
  #, c-format
  msgid "cannot copy cyclic symbolic link %s"
 @@ -1688,6 +1792,10 @@
@@ -562,10 +562,10 @@ diff -Nur coreutils-6.4/po/POTFILES.in coreutils-6.4.selinux/po/POTFILES.in
 +msgid "cannot set default security context %s"
 +msgstr "nie mo¿na ustawiæ domy¶lnego kontekstu bezpieczeñstwa %s"
 +
- #: src/cp.c:1009
+ #: src/cp.c:1030
  #, c-format
  msgid "cannot make both hard and symbolic links"
-@@ -3860,6 +3989,7 @@
+@@ -3880,6 +4009,7 @@
  "Print information for USERNAME, or the current user.\n"
  "\n"
  "  -a              ignore, for compatibility with other versions\n"
@@ -573,7 +573,7 @@ diff -Nur coreutils-6.4/po/POTFILES.in coreutils-6.4.selinux/po/POTFILES.in
  "  -g, --group     print only the effective group ID\n"
  "  -G, --groups    print all group IDs\n"
  "  -n, --name      print a name instead of a number, for -ugG\n"
-@@ -3870,6 +4000,7 @@
+@@ -3890,6 +4020,7 @@
  "\n"
  "  -a              ignorowane, dla zachowania kompatybilno¶ci z innymi "
  "wersjami\n"
@@ -581,7 +581,7 @@ diff -Nur coreutils-6.4/po/POTFILES.in coreutils-6.4.selinux/po/POTFILES.in
  "  -g, --group     wy¶wietlenie tylko efektywnego identyfikatora grupy\n"
  "  -G, --groups    wy¶wietlenie pe³nej listy grup\n"
  "  -n, --name      wy¶wietlenie nazw zamiast numerów, dla -ugG\n"
-@@ -3886,10 +4017,26 @@
+@@ -3906,10 +4037,26 @@
  "Bez ¿adnych OPCJI wy¶wietla zestaw u¿ytecznych informacji, które uda³o siê\n"
  "zidentyfikowaæ.\n"
  
@@ -611,7 +611,7 @@ diff -Nur coreutils-6.4/po/POTFILES.in coreutils-6.4.selinux/po/POTFILES.in
  
  #: src/id.c:156
  #, c-format
-@@ -3921,6 +4068,31 @@
+@@ -3941,6 +4088,31 @@
  msgid " groups="
  msgstr " grupy="
  
@@ -643,7 +643,7 @@ diff -Nur coreutils-6.4/po/POTFILES.in coreutils-6.4.selinux/po/POTFILES.in
  #: src/install.c:318
  #, c-format
  msgid "the strip option may not be used when installing a directory"
-@@ -4059,6 +4231,14 @@
+@@ -4079,6 +4251,14 @@
  "  -T, --no-target-directory  traktowanie CELU jak zwyk³ego pliku\n"
  "  -v, --verbose       wypisanie nazwy ka¿dego tworzonego katalogu\n"
  
@@ -655,10 +655,10 @@ diff -Nur coreutils-6.4/po/POTFILES.in coreutils-6.4.selinux/po/POTFILES.in
 +"  -P, --preserve_context (SELinux) zachowanie kontekstu bezpieczeñstwa\n"
 +"  -Z, --context=KONTEKST (SELinux) ustawienie kontekstu plików i katalogów\n"
 +
- #: src/install.c:694 src/ln.c:365 src/mv.c:318
+ #: src/install.c:692 src/ln.c:365 src/mv.c:318
  msgid ""
  "\n"
-@@ -4448,6 +4628,11 @@
+@@ -4468,6 +4648,11 @@
  msgid "no login name"
  msgstr "brak nazwy u¿ytkownika"
  
@@ -667,10 +667,10 @@ diff -Nur coreutils-6.4/po/POTFILES.in coreutils-6.4.selinux/po/POTFILES.in
 +msgid "Sorry, this option can only be used on a SELinux-enabled kernel.\n"
 +msgstr "Niestety tej opcji mo¿na u¿yæ tylko na j±drze z obs³ug± SELinuksa.\n"
 +
- #: src/ls.c:677
+ #: src/ls.c:684
  msgid "%b %e  %Y"
  msgstr "%b %e  %Y"
-@@ -4812,6 +4997,34 @@
+@@ -4841,6 +5026,34 @@
  "  -X                         sortowanie alfabetyczne wg rozszerzeñ\n"
  "  -1                         listowanie po jednym pliku w linii\n"
  
@@ -702,10 +702,10 @@ diff -Nur coreutils-6.4/po/POTFILES.in coreutils-6.4.selinux/po/POTFILES.in
 +"\n"
 +"\n"
 +
- #: src/ls.c:4356
+ #: src/ls.c:4360
  msgid ""
  "\n"
-@@ -5014,6 +5227,11 @@
+@@ -5043,6 +5256,11 @@
  "Utworzenie KATALOGU/ÓW, je¿eli jeszcze nie istniej±.\n"
  "\n"
  
@@ -717,7 +717,7 @@ diff -Nur coreutils-6.4/po/POTFILES.in coreutils-6.4.selinux/po/POTFILES.in
  #: src/mkdir.c:67
  msgid ""
  "  -m, --mode=MODE   set file mode (as in chmod), not a=rwx - umask\n"
-@@ -5030,6 +5248,11 @@
+@@ -5059,6 +5277,11 @@
  msgid "created directory %s"
  msgstr "utworzony katalog %s"
  
@@ -729,7 +729,7 @@ diff -Nur coreutils-6.4/po/POTFILES.in coreutils-6.4.selinux/po/POTFILES.in
  #: src/mkfifo.c:54
  #, c-format
  msgid "Usage: %s [OPTION] NAME...\n"
-@@ -5043,6 +5266,11 @@
+@@ -5072,6 +5295,11 @@
  "Tworzenie nazwanych potoków (pipes, FIFOs) o podanych NAZWACH.\n"
  "\n"
  
@@ -741,7 +741,7 @@ diff -Nur coreutils-6.4/po/POTFILES.in coreutils-6.4.selinux/po/POTFILES.in
  #: src/mkfifo.c:62 src/mknod.c:64
  msgid ""
  "  -m, --mode=MODE   set file permission bits to MODE, not a=rw - umask\n"
-@@ -6771,6 +6999,72 @@
+@@ -6808,6 +7036,72 @@
  "  -v, --verbose   informacja diagnostyczna o ka¿dym przetworzonym\n"
  "                  katalogu\n"
  
@@ -814,7 +814,7 @@ diff -Nur coreutils-6.4/po/POTFILES.in coreutils-6.4.selinux/po/POTFILES.in
  #: src/seq.c:74
  #, c-format
  msgid ""
-@@ -7640,6 +7934,7 @@
+@@ -7689,6 +7983,7 @@
  "      --printf=FORMAT   like --format, but interpret backslash escapes,\n"
  "                          and do not output a mandatory trailing newline.\n"
  "                          If you want a newline, include \\n in FORMAT.\n"
@@ -822,7 +822,7 @@ diff -Nur coreutils-6.4/po/POTFILES.in coreutils-6.4.selinux/po/POTFILES.in
  "  -t, --terse           print the information in terse form\n"
  msgstr ""
  "  -c  --format=FORMAT   u¿ycie podanego FORMATU zamiast domy¶lnego; po\n"
-@@ -7650,6 +7945,7 @@
+@@ -7699,6 +7994,7 @@
  "                          uko¶nikiem odwrotnym i bez wypisywania znaku "
  "nowej\n"
  "                          linii. ¯eby go wypisaæ u¿yj \\n w FORMACIE.\n"
@@ -830,7 +830,7 @@ diff -Nur coreutils-6.4/po/POTFILES.in coreutils-6.4.selinux/po/POTFILES.in
  "  -t, --terse           wypisywanie informacji w skróconej formie\n"
  
  #: src/stat.c:849
-@@ -7737,6 +8033,7 @@
+@@ -7786,6 +8082,7 @@
  "  %c   Total file nodes in file system\n"
  "  %d   Free file nodes in file system\n"
  "  %f   Free blocks in file system\n"
@@ -838,7 +838,7 @@ diff -Nur coreutils-6.4/po/POTFILES.in coreutils-6.4.selinux/po/POTFILES.in
  msgstr ""
  "Prawid³owe specyfikacje formatu dla systemów plików:\n"
  "\n"
-@@ -7745,6 +8042,7 @@
+@@ -7794,6 +8091,7 @@
  "  %c   ca³kowita liczba i-wêz³ów w systemie plików\n"
  "  %d   liczba wolnych i-wêz³ów w systemie plików\n"
  "  %f   liczba wolnych bloków w systemie plików\n"
@@ -846,7 +846,7 @@ diff -Nur coreutils-6.4/po/POTFILES.in coreutils-6.4.selinux/po/POTFILES.in
  
  #: src/stat.c:896
  msgid ""
-@@ -7764,6 +8062,10 @@
+@@ -7813,6 +8111,10 @@
  "  %t   typ szesnastkowo\n"
  "  %T   typ w formie czytelnej dla cz³owieka\n"
  
@@ -1375,23 +1375,17 @@ diff -Nur coreutils-6.4/src/copy.c coreutils-6.4.selinux/src/copy.c
    if (S_ISDIR (src_mode))
      {
        struct dir_list *dir;
-@@ -1544,8 +1577,14 @@
-       }
-       /* Are we crossing a file system boundary?  */
--      if (x->one_file_system && device != 0 && device != src_sb.st_dev)
--      return true;
-+
-+      if (x->one_file_system && device != 0 && device != src_sb.st_dev) {
+@@ -1544,6 +1577,10 @@
+       {
+         /* Here, we are crossing a file system boundary and cp's -x option
+            is in effect: so don't copy the contents of this directory. */
 +#ifdef WITH_SELINUX
 +      if (x->preserve_security_context && selinux_enabled)
 +        setfscreatecon(NULL);
 +#endif
-+      return true;
-+      }      
-       /* Copy the contents of the directory.  */
+       }
+       else
+       {
 @@ -1689,6 +1728,11 @@
            }
        }
@@ -2017,19 +2011,19 @@ diff -Nur coreutils-6.4/src/ls.c coreutils-6.4.selinux/src/ls.c
        default:
          usage (LS_FAILURE);
        }
-@@ -2485,6 +2560,12 @@
-     {
-       free (files[i].name);
-       free (files[i].linkname);
-+#ifdef WITH_SELINUX
-+      if (files[i].scontext) {
-+      freecon (files[i].scontext);
-+      files[i].scontext=NULL;
+@@ -2485,6 +2558,12 @@
+       struct fileinfo *f = sorted_file[i];
+       free (f->name);
+       free (f->linkname);
++#ifdef WITH_SELINUX
++      if (f->scontext) {
++      freecon (f->scontext);
++      f->scontext=NULL;
 +      }
 +#endif
      }
  
-   files_index = 0;
+   cwd_n_used = 0;
 @@ -2527,6 +2608,9 @@
    memset (f, '\0', sizeof *f);
    f->stat.st_ino = inode;
@@ -2073,9 +2067,9 @@ diff -Nur coreutils-6.4/src/ls.c coreutils-6.4.selinux/src/ls.c
 +
 +#ifdef WITH_SELINUX
 +    case security_format:
-+      for (i = 0; i < files_index; i++)
++      for (i = 0; i < cwd_n_used; i++)
 +      {
-+        print_scontext_format (files + i);
++        print_scontext_format (sorted_file[i]);
 +        DIRED_PUTCHAR ('\n');
 +      }
 +      break;
This page took 0.043474 seconds and 4 git commands to generate.