[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#485559: Re: consistent tftpboot directory location [RFC]



Here's an updated text, based on feedback on debian-policy comments :

Steve Langasek pointed out[1] that the location /srv/tftp could be
used, but no package should provide any file in it. I consider this
would defeat the purpose of having a standard location (pxelinux.0 and
elilo.efi couldn't be dropped by respective packages).
Also, Russ Allbery[2] argued that using /srv/* might violate the FHS.
So I've switched to /var/lib/tftpboot.

Bill Allombert[1], suggested to make the tftp root location compulsory.

Bill Allombert[1], also suggested to state that symlinks shouldn't be
assumed to be followed outside the chroot only.

Franklin

--- START ---
11.12 Packages providing a tftp server

Packages that provides a tftp server (tftpd) which meets the criteria
listed below should declare in their control data that they provide the
virtual package tftp-server.

To be a tftp-server, a program must:

      * Provide a TFTP service compatible with RFC 783 and 1350. 
      * Define /var/lib/tftp as the default tftp root directory.
      * Serve filenames relatively to the defined tftp-root, not
        relatively to the system root directory (/).
Should :
      * Provide a program named "/usr/bin/tftp-get-root-location" which
        returns the actual location of tftp root, as currently configured
	and enabled by the system owner.

Note : The tftp-server is not expected to follow/serve symbolic links 
that point outside the tftproot (due to chroot-like mechanisms).
--- END ---

[1] http://lists.debian.org/debian-policy/2008/06/msg00154.html
[2] http://lists.debian.org/debian-policy/2008/06/msg00152.html
[3] http://lists.debian.org/debian-policy/2008/06/msg00153.html





Reply to: