|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 03-May-2022 | - |
| docs/ | H | 19-Dec-2009 | - | 3,376 | 2,580 |
| lpd/ | H | 19-Dec-2009 | - | 199 | 105 |
| pdq/ | H | 19-Dec-2009 | - | 525 | 414 |
| ppa_protocol/ | H | 03-May-2022 | - | 570 | 471 |
| rhs-printfilters/ | H | 19-Dec-2009 | - | 490 | 325 |
| rpm/redhat/ | H | 19-Dec-2009 | - | 153 | 106 |
| sample_scripts/ | H | 19-Dec-2009 | - | 12 | 9 |
| testpages/ | H | 19-Dec-2009 | - | 972 | 969 |
| utils/Linux/ | H | 19-Dec-2009 | - | 356 | 284 |
| Changelog | H A D | 12-Dec-2009 | 11.5 KiB | 242 | 228 |
| INSTALL | H A D | 11-Jul-2000 | 68 | 6 | 2 |
| Makefile.am | H A D | 12-Dec-2009 | 2.1 KiB | 133 | 82 |
| Makefile.in | H A D | 19-Dec-2009 | 27.8 KiB | 903 | 764 |
| README | H A D | 11-Jul-2000 | 53 | 5 | 2 |
| README.security | H A D | 27-Aug-2001 | 3.6 KiB | 98 | 67 |
| aclocal.m4 | H A D | 19-Dec-2009 | 32.1 KiB | 892 | 797 |
| asciippafilter | H A D | 03-May-2022 | 157 | 6 | 3 |
| calibrate_ppa.c | H A D | 12-Dec-2009 | 23.5 KiB | 1,048 | 854 |
| config.guess | H A D | 19-Dec-2009 | 43.2 KiB | 1,501 | 1,289 |
| config.h.in | H A D | 19-Dec-2009 | 2.7 KiB | 123 | 83 |
| config.sub | H A D | 19-Dec-2009 | 31.8 KiB | 1,617 | 1,473 |
| configure | H A D | 03-May-2022 | 198 KiB | 7,171 | 5,970 |
| configure.ac | H A D | 19-Dec-2009 | 4.2 KiB | 198 | 176 |
| cutswath.c | H A D | 12-Dec-2009 | 67.4 KiB | 2,285 | 1,811 |
| debug.c | H A D | 12-Dec-2009 | 1.3 KiB | 42 | 17 |
| debug.h | H A D | 13-Jan-2000 | 1.2 KiB | 37 | 8 |
| defaults.h | H A D | 11-Feb-2002 | 4.5 KiB | 161 | 125 |
| depcomp | H A D | 19-Dec-2009 | 17.2 KiB | 585 | 370 |
| dither.c | H A D | 12-Dec-2009 | 14.8 KiB | 636 | 449 |
| dither.h | H A D | 13-Jan-2000 | 1.2 KiB | 26 | 6 |
| enh-curve.h | H A D | 13-Jan-2000 | 2.3 KiB | 44 | 26 |
| fscoeff.h | H A D | 13-Jan-2000 | 10.7 KiB | 276 | 253 |
| gamma.c | H A D | 12-Dec-2009 | 3.8 KiB | 140 | 82 |
| gamma.h | H A D | 21-Oct-2000 | 1.3 KiB | 37 | 7 |
| global.h | H A D | 12-Dec-2009 | 3.7 KiB | 126 | 67 |
| hash_ink.h | H A D | 26-Jan-2000 | 2.2 KiB | 60 | 11 |
| image.c | H A D | 12-Dec-2009 | 39.3 KiB | 1,551 | 1,116 |
| image.h | H A D | 07-Jun-2002 | 2.4 KiB | 81 | 42 |
| install-sh | H A D | 19-Dec-2009 | 12.9 KiB | 508 | 340 |
| lang.h | H A D | 11-Feb-2002 | 3.1 KiB | 101 | 68 |
| make_hash_ink.c | H A D | 12-Dec-2009 | 11.2 KiB | 443 | 338 |
| missing | H A D | 19-Dec-2009 | 10.9 KiB | 368 | 275 |
| palette.h | H A D | 26-Jan-2000 | 3.5 KiB | 95 | 62 |
| pnm2ppa.1 | H A D | 03-May-2022 | 6.6 KiB | 217 | 126 |
| pnm2ppa.c | H A D | 03-May-2022 | 28.1 KiB | 1,151 | 918 |
| pnm2ppa.conf | H A D | 03-May-2022 | 7.6 KiB | 188 | 2 |
| pnm2ppa.conf.sample | H A D | 03-May-2022 | 7.6 KiB | 188 | 155 |
| pnm2ppa.h | H A D | 12-Dec-2009 | 1.8 KiB | 58 | 31 |
| pnmtools.c | H A D | 12-Dec-2009 | 6.8 KiB | 246 | 175 |
| pnmtools.h | H A D | 11-Feb-2002 | 2.1 KiB | 78 | 35 |
| ppa.c | H A D | 12-Dec-2009 | 18.9 KiB | 720 | 516 |
| ppa.h | H A D | 27-Mar-2002 | 2.8 KiB | 119 | 84 |
| ppa_syslog.h | H A D | 03-May-2022 | 2 KiB | 68 | 23 |
| ppafilter | H A D | 03-May-2022 | 118 | 5 | 2 |
| stamp-h1 | H A D | 19-Dec-2009 | 23 | 2 | 1 |
| syslog.c | H A D | 12-Dec-2009 | 2.7 KiB | 110 | 55 |
| test.ps | H A D | 20-Jan-2000 | 23.7 KiB | | |
| testpage-a4.ps | H A D | 11-Jul-2000 | 6.9 KiB | | |
| testpage.ps | H A D | 11-Jul-2000 | 6.7 KiB | | |
| text-cz.h | H A D | 11-Feb-2002 | 3.6 KiB | 103 | 37 |
| text-en.h | H A D | 03-May-2022 | 3.3 KiB | 108 | 37 |
| text-es.h | H A D | 11-Feb-2002 | 4.3 KiB | 110 | 37 |
| text-fr.h | H A D | 11-Feb-2002 | 3.7 KiB | 103 | 37 |
| text-it.h | H A D | 11-Feb-2002 | 4.1 KiB | 110 | 37 |
| text-nl.h | H A D | 11-Feb-2002 | 5 KiB | 140 | 37 |
README
README.security
1These notes are for the guidance of distributions that include pnm2ppa:
2---------------------------------------------------------------------
3
4Notes on secure installation of pnm2ppa.
5
6What pnm2ppa does:
7
81. It attempts to open and read a configuration file
9 "/etc/pnm2ppa.conf", and then any additional configuration
10 files with paths specified by the -f command line option.
11
12 These paths are checked to be shorter than MAXPATHLEN before
13 they are used, otherwise pnm2ppa terminates.
14
15 GNU getopt() is used to process options.
16
172. It opens an input file (-i option) to receive pnm data.
18 The pnm format and page size is taken from the header.
19
20 If the header does not correspond to a valid pnm format, the rest
21 of the data is rejected, and pnm2ppa terminates.
22
23 The input file path is checked to have a length less than
24 MAXPATHLEN, as determined at compilation time.
25
263. It opens an output file (-o option) to send ppa data
27 (for the printer).
28
29 The output file path is checked to have a length less than
30 MAXPATHLEN.
31
32
334. (unless the --noGamma option is specified) it tries to read color
34 correction data from "/etc/pnm2ppa.gamma", or an alternate file with
35 a path specified by the -F command line option.
36
37 Such paths are also checked to be shorter than MAXPATHLEN before
38 they are used.
39
40 If this data exists, but is not successfully read, pnm2ppa terminates.
41 (See COLOR.txt).
42
435. pnm2ppa opens and writes to the syslog with informational messages
44 about its progress, or, if it terminates, with an error message.
45 If it is working in --verbose mode, these messages are also sent
46 to stderr.
47
48 No strings derived from user input to pnm2ppa are included in syslog
49 messages. Syslog messages must fit in a string of length < 128.
50 They can be suppressed with a keyword "silent 1" in the default
51 system configuration file (/etc/pnm2ppa.conf), but not from
52 user-specified config files (from -f option).
53
54 All syslog actions by pnm2ppa are "wrapped": message strings
55 produces in the rest of the program are only sent to the syslog by
56 code in syslog.c. This is also where openlog() and closelog() are
57 called.
58
59
60----------------------------------------------------------------------
61Recommendations:
62
63-- do *NOT* install pnm2ppa suid/guid, if is possible that a
64 "malicious user" might run it. The output file specified
65 with the -o option could overwrite files to which the user
66 has no write permission.
67
68
69-- since pnm2ppa works as an output filter for gs, it only needs the
70 same privileges that gs would need. If lpr is available, pipe
71 the pnm2ppa output though "lpr -l ..." to the appropriate printer
72 rather than directly sending it to e.g. /dev/lp0 (in the latter case,
73 write privileges on /dev/lp0 would be needed.)
74
75--------------------------------------------------------------
76
77Other (optional) programs in the distribution:
78
79Do NOT install these suid/gid!
80
81calibrate_ppa.c:
82 This is used to produce various ppmraw format PixMap images
83 used with pnm2ppa for printer calibration. Note: these
84 PixMaps are LARGE (100MB!!) and should generally be piped
85 directly to pnm2ppa.
86
87 THIS SHOULD USUALLY BE INSTALLED.
88
89parse_vlink.c
90 a utility useful in debugging pnm2ppa that can interpret
91 ppa format output instructions to the printer, whether
92 produced by pnm2ppa, or captured from the Windows9x drivers.
93 It is in the ppa_protocol subdirectory, and is not compiled
94 by default.
95
96 THIS IS NOT USUALY INSTALLED.
97
98