Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236359 - New Ebuild: vsntp-2.0.0
Summary: New Ebuild: vsntp-2.0.0
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://vsntp.sourceforge.net/en/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2008-09-01 14:21 UTC by Natanael Copa
Modified: 2008-09-01 15:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
vsntp-2.0.0.ebuild (vsntp-2.0.0.ebuild,519 bytes, text/plain)
2008-09-01 14:23 UTC, Natanael Copa
Details
vsntp-2.0.0.ebuild (vsntp-2.0.0.ebuild,626 bytes, text/plain)
2008-09-01 15:58 UTC, Natanael Copa
Details
files/vsntp.initd (vsntp.initd,499 bytes, text/plain)
2008-09-01 15:58 UTC, Natanael Copa
Details
vsntp.confd (vsntp.confd,186 bytes, text/plain)
2008-09-01 15:59 UTC, Natanael Copa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Natanael Copa 2008-09-01 14:21:43 UTC
vsntp is an SNTP client daemon for machines without a sane system time. The word "vsntp" stands for "SNTP for Virtual PC". It was originally designed for my GNU/Linux server running on Connectix Virtual PC. It runs according to RFC 1769 SNTP, connecting the NTP server on UDP port 123.

Seems like this is the only option for gentoo hardened guests in ms virtual server.

The ms vm addons behaves like a rootkit and gets spanked by the grsec kernel.

(ms vmadd contains a kernel module that helps vmadd-prepare-module to inject a binary blob (vmadd.dll) in the kernel, which sets up a message passing system between the guest and the host, (seems like its using some kind of shared mem(!)) It provides some ioctls which allows the guest to read the host system time in utc (IOCTL_GetHostFileTimeUTC) which the statically timesyncd uses together with settimeofday (+ some smarts to even out the time changes)

Basicly, it would be more sane to read tim from ntp source and just set the time using settimeofday periodically than trying to reverse engineer the ms vmaddons to work on with gentoo hardened.

thats why this package is needed
Comment 1 Natanael Copa 2008-09-01 14:23:23 UTC
Created attachment 164250 [details]
vsntp-2.0.0.ebuild
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2008-09-01 14:48:50 UTC
- don't inherit an eclass, when you don't use it
- what's with the dependencies? My guess is that this software depends on virtual/libc at least
- einstall() is an ugly hack and only to be used when the build script is completely broken and it's too costly to patch.
Comment 3 Natanael Copa 2008-09-01 15:58:25 UTC
Created attachment 164260 [details]
vsntp-2.0.0.ebuild

fixes the mentioned issues
Comment 4 Natanael Copa 2008-09-01 15:58:56 UTC
Created attachment 164261 [details]
files/vsntp.initd

init.d script
Comment 5 Natanael Copa 2008-09-01 15:59:21 UTC
Created attachment 164262 [details]
vsntp.confd

conf.d file