Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#3038 closed defect (fixed)

BUG: StartupItems not working on Tiger

Reported by: jlevitsk@… Owned by: jberry@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: jberry@…
Port:

Description

I built Anacron with a target of pkg. I installed the pkg on a machine running 10.4 and then also on a machine running a seed of 10.4.1. On bootup on either system I see "An item in the Startup Items folder ("/Library/StartupItems/Anacron") does not have the proper security settings." There is an option to Fix but it doesn't change any permissions.. I believe this is because a symbolic link is actually what is in / Library/StartupItems and perhaps Apple didn't consider this.. or perhaps they did and this is a security issue.

This happened with anacron but it seems there is a standard startup item script that every port uses? I'm new to this but that's what I think so I would guess this would happen with any port that makes a startup item. I will also file a bug on the Apple side of the house and see if perhaps this is not how it should be working.

Attachments (1)

fixPerms (332 bytes) - added by jlevitsk@… 19 years ago.
postflight fix for Tiger to show issue

Download all attachments as: .zip

Change History (10)

Changed 19 years ago by jlevitsk@…

Attachment: fixPerms added

postflight fix for Tiger to show issue

comment:1 Changed 19 years ago by jlevitsk@…

I ran "sudo SystemStarter -v start Anacron" and I got an error...

Checking disks lockfile: Sorry, giving up on "/var/run/NFS.StartupItem"

So I removed the NFS requirement in the StartupParameters.plist and it seemed to elminate the errors.

comment:2 Changed 19 years ago by jlevitsk@…

Next you have to add ANACRON=-YES- to /etc/hostconfig and you run in to the next problem.

/opt/local/etc/anacrontab: No such file or directory

comment:3 Changed 19 years ago by jlevitsk@…

Once I copied the anacrontab-dist to anacrontab and ran SystemStarter again it seems Anacron is working under Tiger.

comment:4 Changed 19 years ago by toby@…

severity: blockernormal

comment:5 Changed 19 years ago by jmpp@…

Cc: jberry@… added
Owner: changed from darwinports-bugs@… to rshaw@…
Summary: StartupItems not working on TigerBUG: StartupItems not working on Tiger

Assigning bug to maintainer of port. Also adding James Berry to the Cc list as he's been working on startup itemes support for dp lately, he might be interested in this discussion.

-jmpp

comment:6 Changed 19 years ago by jberry@…

I can confirm (both from testing and from looking at the SystemStarter source) that SystemStarter in Tiger requires now requires that the StartupItem is not a symlink. Each directory (and each file within the directory) must be a directory/regular file.

We should probably alter the startupitem behavior to generate the files in /Library/StartupItems, rather than simply symlinking from there. Ironcially, launchd doesn't seem to have the same restriction (yet) though it may in the future ;)

comment:7 Changed 19 years ago by rshaw@…

Owner: changed from rshaw@… to jberry@…

comment:8 Changed 19 years ago by jberry@…

Status: newassigned

I've fixed this bug in cvs HEAD. Two changes are relevent:

(1) Create plist and script as root:wheel (2) Create entire startup item directory in /Library/StartupItems (if we just symlink to a copy of the directory then systemstarter still complains about security issues).

This fix has been checked in, but the bug will remain open until the fix has been migrated to the release branch, probably in conjunction with launchd support.

comment:9 Changed 19 years ago by jberry@…

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.