ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Konstantin A. Lepikhov" <lakostis@anti-leasure.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: [sisyphus] Re: hotplug
Date: Sun, 12 Dec 2004 21:10:33 +0300
Message-ID: <20041212181033.GA10412@lks.home> (raw)
In-Reply-To: <20041212094550.GB27874@pyro.hopawar.private.net>


[-- Attachment #1.1: Type: text/plain, Size: 842 bytes --]

Hi Alexey!

Sunday 12, at 03:45:50 PM you wrote:

> On Fri, Dec 10, 2004 at 11:24:16PM +0200, Aleksandr Blokhin wrote:
> > >Да. Т.е. не пишет. Т.е. xcdroast тоже не пишет. k3b пишет через cdrdao,
> > >если увидит резак.
> > И cdrecord и xcdroast пишут, но при запуске либо через sudo либо su -c.
> > Можно пересобрать xcdroast без --disable-nonrootmode, но это не секурное 
> > решение.
> Для cdrecord, вроде, уже есть патч. http://kerneltrap.org/node/view/4022
> 
> Попробуйте кто-нибудь, а?
попробовал, работает. Прикладываю diff для spec (я туда еще rscsi добавил)
+ патч для a37

-- 
WBR, Konstantin	      chat with ==>ICQ: 109916175
     Lepikhov,	      speak  to ==>JID: lakostis@jabber.org
aka L.A. Kostis       write  to ==>mailto:lakostis@pisem.net.nospam

...The information is like the bank... 			  (c) EC8OR

[-- Attachment #1.2: cdrtools.spec.diff --]
[-- Type: text/plain, Size: 1396 bytes --]

--- cdrtools.spec~	2004-08-24 16:13:41 +0400
+++ cdrtools.spec	2004-12-12 21:01:01 +0300
@@ -1,7 +1,7 @@
 %define cdr_major 2.01
 %define iso_major 2.01
 %define minor a37
-%define alt_rel alt1
+%define alt_rel alt2
 
 Name: cdrtools
 Version: %cdr_major
@@ -25,6 +25,7 @@
 Patch3: %name-1.9-alt-manlocation.patch
 Patch4: %name-2.01a29-alt-undepcfg.patch
 Patch5: %name-2.01-alt-rcmdrsh.patch
+Patch6: %name-2.01a37-skipcheck_priv.patch
 
 BuildConflicts: %name-devel
 
@@ -134,6 +135,7 @@
 %patch1 -p0
 %patch2 -p1
 %patch3 -p1
+%patch6 -p1
 
 find -type f -print0 |
 	xargs -r0 %__grep -EZl '/etc/default/(cdrecord|rscsi|cdda2ogg)' -- |
@@ -222,11 +224,13 @@
 
 %files -n cdrecord
 %attr(640,root,cdwriter) %config(noreplace) %_sysconfdir/cdrecord.conf
+%attr(640,root,cdwriter) %config(noreplace) %_sysconfdir/rscsi.conf
 %_bindir/cdrecord
 %_bindir/readcd
 %_bindir/scgcheck
 %_bindir/devdump
 %_bindir/iso*
+%_sbindir/rscsi
 %_man1dir/cdrecord.*
 %_man1dir/readcd.*
 %_man1dir/scgcheck.*
@@ -243,6 +247,10 @@
 %docdir/cdda2wav
 
 %changelog
+* Sun Dec 12 2004 LAKostis <lakostis at altlinux.ru> 5:2.01-alt2a37
+- add rscsi to cdrecord package.
+- add patch for linux kernel >= 2.6.8.1 compatability.
+
 * Tue Aug 24 2004 Dmitry V. Levin <ldv@altlinux.org> 5:2.01-alt1a37
 - Updated to 2.01a37.
 - Moved control files to separate package.

[-- Attachment #1.3: cdrtools-2.01a37-skipcheck_priv.patch --]
[-- Type: text/plain, Size: 1652 bytes --]

--- cdrtools-2.01a37/cdrecord/cdrecord.c~	2004-12-12 20:38:26 +0300
+++ cdrtools-2.01a37/cdrecord/cdrecord.c	2004-12-12 20:58:26 +0300
@@ -466,8 +466,10 @@ main(ac, av)
 	/*
 	 * XXX Below this point we do not need root privilleges anymore.
 	 */
+	/* XXX Quick'n'dirty hack for linux kernel >= 2.6.8.1 compatability 
 	if (geteuid() != getuid()) {	/* AIX does not like to do this */
 					/* If we are not root		*/
+	/*
 #ifdef	HAVE_SETREUID
 		if (setreuid(-1, getuid()) < 0)
 #else
@@ -479,6 +481,8 @@ main(ac, av)
 #endif
 			comerr("Panic cannot set back effective uid.\n");
 	}
+	*/
+	
 	/*
 	 * WARNING: We now are no more able to do any privilleged operation
 	 * unless we have been called by root.
@@ -983,10 +987,12 @@ if (lverbose > 2)
 		 * even on OS that do not support getreuid() which is *BSD
 		 * and SUSv3 only.
 		 */
+		/* XXX Quick'n'dirty hack for linux kernel >= 2.6.8.1 compatability
 		if (oeuid != getuid()) {
 			if (setreuid(-1, oeuid) < 0)
 				errmsg("Could set back effective uid.\n");
 		}
+		*/
 #endif
 		/*
 		 * fork() here to start the extra process needed for
@@ -1001,11 +1007,13 @@ if (lverbose > 2)
 		/*
 		 * XXX Below this point we never need root privilleges anymore.
 		 */
+		/* XXX Quick'n'dirty hack for linux kernel >= 2.6.8.1 compatability
 		if (geteuid() != getuid()) {	/* AIX does not like to do this */
 						/* If we are not root		*/
-			if (setreuid(-1, getuid()) < 0)
+	/*		if (setreuid(-1, getuid()) < 0)
 				comerr("Panic cannot set back effective uid.\n");
 		}
+	*/
 #endif
 	}
 	if ((*dp->cdr_set_speed_dummy)(scgp, dp, &speed) < 0) {

[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 2212 bytes --]

  reply	other threads:[~2004-12-12 18:10 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-09 17:57 [sisyphus] hotplug Mike Andreev
2004-12-09 18:10 ` Mike Andreev
2004-12-09 19:39   ` Anton Farygin
2004-12-10  8:48     ` Mike Andreev
2004-12-10 13:39       ` Anton Farygin
2004-12-10 16:13         ` Andrey Rahmatullin
2004-12-10 16:55           ` Andriy Dobrovol's'kii
2004-12-10 17:27             ` Mikhael Korneev
2004-12-11 11:45               ` [sisyphus] 2.6.* рулез или маздай? Denis Smirnov
2004-12-11 11:46                 ` [sisyphus] " Michael Shigorin
2004-12-10 21:24           ` [sisyphus] hotplug Aleksandr Blokhin
2004-12-10 21:47             ` Andrey Rahmatullin
2004-12-12  9:45             ` Alexey Morozov
2004-12-12 18:10               ` Konstantin A. Lepikhov [this message]
2004-12-12 20:40                 ` [sisyphus] hotplug Aleksandr Blokhin
2004-12-13  9:47                   ` Ivan Fedorov
2004-12-13  9:49                 ` Ivan Fedorov
2004-12-13 11:01                   ` Konstantin A. Lepikhov
2004-12-13 11:19                     ` Ivan Fedorov
2004-12-13 14:34                       ` Konstantin A. Lepikhov
2004-12-13 14:47                         ` Ivan Fedorov
2004-12-13 17:22                           ` Konstantin A. Lepikhov
2004-12-13 17:42                             ` Ivan Fedorov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041212181033.GA10412@lks.home \
    --to=lakostis@anti-leasure.ru \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git