]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/Insecure_dependency_in_mkdir.mdwn
response
[ikiwiki.git] / doc / bugs / Insecure_dependency_in_mkdir.mdwn
1 Joey, please see RecentChanges and note that this is my second bug report,
2 because the first was unsuccessfully (bad characters in post title?).
3 Could you please tidy it up?
4
5 > I've fixed that and the bug that caused the dup.
6
7 >> Thanks a lot! :)
8
9 I've just upgraded my ikiwiki from version 2.11 to the latest version 2.15.
10 I use my own rebuilt ikiwiki package for Ubuntu Gutsy box. Now I can't rebuild
11 all my ikiwiki pages, because of the following bug:
12
13     ptecza@anahaim:~/blog$ ikiwiki --setup ikiwiki.setup --getctime --verbose
14     [...]
15     scanning post/2007/12/09/pink-freud-w-cafe-kulturalna.mdwn
16     ikiwiki.setup: Insecure dependency in mkdir while running with -T switch at /usr/share/perl5/IkiWiki.pm line 355.
17     BEGIN failed--compilation aborted at (eval 5) line 151.
18
19 I have a write permission to the ikiwiki destination directory:
20
21     ptecza@anahaim:~/blog$ ls -ld /var/www/blog/
22     drwxr-xr-x 2 ptecza ptecza 4096 2007-12-17 10:48 /var/www/blog/
23
24 I've read ikiwiki changelog for the previous releases and unfortunately
25 I can't see any related entries. Any ideas?
26
27 --[[Paweł|ptecza]]
28
29 > **Update**: I've came back to ikiwiki 2.11 and... the bug still exists!
30 > Probably the reason is that I've removed all content of `/var/www/blog/`
31 > before mass rebuilding. --[[Paweł|ptecza]]
32
33 > I can't reproduce this bug with a setup file that tells ikiwiki to
34 > write to /var/www/blog, which doesn't exist. I get a "Permission denied"
35 > since I can't write to /var/www. If I make the permissions allow me to
36 > write to /var/www, it happily creates the blog subdirectory. If the blog
37 > subdirectory is already there and I can write to it, that of course also
38 > works.
39
40 > I'll need enough information to reproduce the problem before I can fix
41 > it. Probably a copy of your setup file, wiki source, and information
42 > about how your /var/www is set up. --[[Joey]]
43
44 >> Thanks for your efforts, Joey! I sent my `ikiwiki.setup` file to you.
45 >> What source do you need? Entire my ikiwiki or only some pages?
46 >>
47 >> There are settings of `/var/www/` directory on my Ubuntu Gutsy box:
48 >>
49 >>        ptecza@anahaim:~$ ls -al /var/www/
50 >>        total 16
51 >>        drwxr-xr-x  4 root   root   4096 2007-11-06 16:25 .
52 >>        drwxr-xr-x 14 root   root   4096 2007-11-06 16:13 ..
53 >>        drwxr-xr-x  2 root   root   4096 2007-11-06 16:13 apache2-default
54 >>        drwxr-xr-x  5 ptecza ptecza 4096 2007-12-17 16:54 blog
55 >>
56 >> --[[Paweł|ptecza]]
57
58 >> I need a set of files that you know I can use to reproduce the bug.
59 >> --[[Joey]]
60
61 >>> OK, I've just sent you the URL where you can find all files you need :)
62 >>>
63 >>> Probably I know how to reproduce the bug. You have to erase all files from
64 >>> `/var/www/blog` before mass rebuilding. This is my `mass-rebuild.sh` script:
65 >>>
66 >>>        #!/bin/bash
67 >>>        
68 >>>        rm -rf /var/www/blog/*
69 >>>        ikiwiki --setup ikiwiki.setup --getctime --verbose
70 >>>
71 >>> I noticed that the bug was "resolved" when I added to my blog new entry
72 >>> and commited the changes. Before I created all directories and touched
73 >>> empty `*.html` files in `/var/www/blog` directory. Probably it's not
74 >>> necessary, because without a new blog revision the bug still existed
75 >>> and `ikiwiki` still failed.
76 >>>
77 >>> --[[Paweł|ptecza]]
78
79 >> I'd forgotten about [this perl bug](http://bugs.debian.org/411786).
80 >> All I can do is work around it by disabling the taint checking. :-(
81 >> (Which I've [[done]].) --[[Joey]]
82
83 >>> Ubuntu Gutsy also has Perl 5.8.8-7, so probably it has the bug too.
84 >>> --[[Paweł|ptecza]]
85
86 >>>> I just got it while building my latest version of git.ikiwiki.info + my stuff.
87 >>>> Only thing different in my version in IkiWiki.pm is that I moved a </a> over
88 >>>> a word (for createlink), and disabled the lowercasing of created pages. Running
89 >>>> Lenny's Perl. --[[simonraven]]
90
91 >>>> Simon, I'm not clear what version of ikiwiki you're using.
92 >>>> Since version 2.40, taint checking has been disabled by
93 >>>> default due to the underlying perl bug. Unless you
94 >>>> build ikiwiki with NOTAINT=0. --[[Joey]]