• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

docs/H19-Dec-2009-3,3762,580

lpd/H19-Dec-2009-199105

pdq/H19-Dec-2009-525414

ppa_protocol/H03-May-2022-570471

rhs-printfilters/H19-Dec-2009-490325

rpm/redhat/H19-Dec-2009-153106

sample_scripts/H19-Dec-2009-129

testpages/H19-Dec-2009-972969

utils/Linux/H19-Dec-2009-356284

ChangelogH A D12-Dec-200911.5 KiB242228

INSTALLH A D11-Jul-200068 62

Makefile.amH A D12-Dec-20092.1 KiB13382

Makefile.inH A D19-Dec-200927.8 KiB903764

READMEH A D11-Jul-200053 52

README.securityH A D27-Aug-20013.6 KiB9867

aclocal.m4H A D19-Dec-200932.1 KiB892797

asciippafilterH A D03-May-2022157 63

calibrate_ppa.cH A D12-Dec-200923.5 KiB1,048854

config.guessH A D19-Dec-200943.2 KiB1,5011,289

config.h.inH A D19-Dec-20092.7 KiB12383

config.subH A D19-Dec-200931.8 KiB1,6171,473

configureH A D03-May-2022198 KiB7,1715,970

configure.acH A D19-Dec-20094.2 KiB198176

cutswath.cH A D12-Dec-200967.4 KiB2,2851,811

debug.cH A D12-Dec-20091.3 KiB4217

debug.hH A D13-Jan-20001.2 KiB378

defaults.hH A D11-Feb-20024.5 KiB161125

depcompH A D19-Dec-200917.2 KiB585370

dither.cH A D12-Dec-200914.8 KiB636449

dither.hH A D13-Jan-20001.2 KiB266

enh-curve.hH A D13-Jan-20002.3 KiB4426

fscoeff.hH A D13-Jan-200010.7 KiB276253

gamma.cH A D12-Dec-20093.8 KiB14082

gamma.hH A D21-Oct-20001.3 KiB377

global.hH A D12-Dec-20093.7 KiB12667

hash_ink.hH A D26-Jan-20002.2 KiB6011

image.cH A D12-Dec-200939.3 KiB1,5511,116

image.hH A D07-Jun-20022.4 KiB8142

install-shH A D19-Dec-200912.9 KiB508340

lang.hH A D11-Feb-20023.1 KiB10168

make_hash_ink.cH A D12-Dec-200911.2 KiB443338

missingH A D19-Dec-200910.9 KiB368275

palette.hH A D26-Jan-20003.5 KiB9562

pnm2ppa.1H A D03-May-20226.6 KiB217126

pnm2ppa.cH A D03-May-202228.1 KiB1,151918

pnm2ppa.confH A D03-May-20227.6 KiB1882

pnm2ppa.conf.sampleH A D03-May-20227.6 KiB188155

pnm2ppa.hH A D12-Dec-20091.8 KiB5831

pnmtools.cH A D12-Dec-20096.8 KiB246175

pnmtools.hH A D11-Feb-20022.1 KiB7835

ppa.cH A D12-Dec-200918.9 KiB720516

ppa.hH A D27-Mar-20022.8 KiB11984

ppa_syslog.hH A D03-May-20222 KiB6823

ppafilterH A D03-May-2022118 52

stamp-h1H A D19-Dec-200923 21

syslog.cH A D12-Dec-20092.7 KiB11055

test.psH A D20-Jan-200023.7 KiB

testpage-a4.psH A D11-Jul-20006.9 KiB

testpage.psH A D11-Jul-20006.7 KiB

text-cz.hH A D11-Feb-20023.6 KiB10337

text-en.hH A D03-May-20223.3 KiB10837

text-es.hH A D11-Feb-20024.3 KiB11037

text-fr.hH A D11-Feb-20023.7 KiB10337

text-it.hH A D11-Feb-20024.1 KiB11037

text-nl.hH A D11-Feb-20025 KiB14037

README

1English
2
3Please read the README in ./docs/en/README
4
5

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