[Bug 203898] Re: slapcat broken when default apparmor profile is enabled
Jamie Strandboge
jamie at ubuntu.com
Wed Mar 19 14:45:08 GMT 2008
Using hard links instead of symlinks is reasonable based on
server/slapd.main.c:
static struct {
char *name;
MainFunc *func;
} tools[] = {
{"slapadd", slapadd},
{"slapcat", slapcat},
{"slapdn", slapdn},
{"slapindex", slapindex},
{"slappasswd", slappasswd},
{"slaptest", slaptest},
{"slapauth", slapauth},
{"slapacl", slapacl},
/* NOTE: new tools must be added in chronological order,
* not in alphabetical order, because for backwards
* compatibility name[4] is used to identify the
* tools; so name[4]=='a' must refer to "slapadd" and
* not to "slapauth". Alphabetical order can be used
* for tools whose name[4] is not used yet */
{NULL, NULL}
};
...
serverName = lutil_progname( "slapd", argc, argv );
if ( strcmp( serverName, "slapd" ) ) {
for (i=0; tools[i].name; i++) {
if ( !strcmp( serverName, tools[i].name ) ) {
rc = tools[i].func(argc, argv);
MAIN_RETURN(rc);
}
}
}
...
lutil_progname() simply grabs argv[0] and returns it. Based on the
above, slapd doesn't care if they are hardlinks or symlinks.
** Changed in: openldap2.3 (Ubuntu)
Status: Confirmed => Triaged
--
slapcat broken when default apparmor profile is enabled
https://bugs.launchpad.net/bugs/203898
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openldap2.3 in ubuntu.
More information about the Ubuntu-server-bugs
mailing list