From nobody Sat Aug 02 04:17:25 2025 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bv8gD6Lwlz63XrR for ; Sat, 02 Aug 2025 04:17:44 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bv8gC1cnfz43ZC for ; Sat, 02 Aug 2025 04:17:43 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20230601.gappssmtp.com header.s=20230601 header.b=RX1Z0MBc; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::102c) smtp.mailfrom=wlosh@bsdimp.com; dmarc=none Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-32106b0930eso1260534a91.0 for ; Fri, 01 Aug 2025 21:17:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1754108256; x=1754713056; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=tbC3aA0wFQFqftvXBvrzyEWDXm+E8y+YrtzC9wYOMEY=; b=RX1Z0MBcopBJ462sXMfS8Iw4A4vVD47xDu5ZSljVGO9KUs/CN5FB3IzXlC/FAA8GSm jnjQ0dZq5zrsQgIPDhBy8VoPIvTDLaVWlJ+PUDMET1/Jr3sQp9llqvYRBobFE9muXsi8 ZeldQEK6XTdz/dPal6j2IV3TBQREJYplmj19Hf6wMT7l3cR+cIGL8P3AjxycW5l4JVUn 3dGQ1cFyo/V6zLVQ5BPnCSWc9r0H1MK7D1uwuIucbNlQo1TV/Y9eUbQ5U+C6HLUYlhr7 /Vpk3VIyoLCgrwCPnMIkx5liu2CXGvgTG30sXhzGn+3Kb8X+3oZdiGD0cairCEOk/yso 7+VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754108256; x=1754713056; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tbC3aA0wFQFqftvXBvrzyEWDXm+E8y+YrtzC9wYOMEY=; b=eQ5opoJpNgxdxDGzUzFDdKJ9ADhx6xmsJiQCRFnm1kZAf9DUAQ8yd0SGg+P4ZpF8cV ox3fgzueUNlflsUfAYd77U5+FvSYTIcOEb/AcSFEiE+Mr/D+RqVei2eVpvEuT9gSN1sL bgg3PchlR50Uv3TlVqM9Oixady/jwLAPzx57ThNekL3I32z+MS7uLSRBhX07bxQhXEbE sGJrDomICgRQysT19SK2HAk0rBkHy4B1hIxHCAFrjbJ0rQ2l5iGUiRSOqIPywrBzaM7Q pp4x0OcUC1Ia3mrIpUM+i11B6IUpL8dn5aLv6C/ggpKZT+wbsm4o7ZR/iCy0baQehBy+ Rbkw== X-Gm-Message-State: AOJu0YzN7Wm8tj7i8/UYMykFk75XO5Li7pe6mcpSnyTTLWZfAKt6oU/E XnvD9tpVZhAkUb6gWHDHZiHgwVqr9LAKQ641NuwH0w6XA7RhCogsr3CnGLXKMC0Vh1E8wKHigm9 eqniMX5og23k6roJgRH0TfhA8WISSiBiwvE9t1b5FqxWdgtAsleez X-Gm-Gg: ASbGncu7+sDfkBJd4C7H2Txio+825K05BldtaDv9VfOEH/oQvupCl2/dhrq3eUKxpMQ E9hSa7ton7SH8t0EcBn8ZAREo4Ghi8VKdQGS3My+VvfSe3DiW+2eV2q93zGWVXqAQu4jkFuAd3A ZsQBjpI7pQqLu58mv1xEOzPQSTMxLXMorR3hFW/GELLPevT9sGnhGdjrc4cD+vbpLIpcsHZzs/P cBn/j2JENV+j5YpWGKc1E2q/CMMLQpqU58Xqf/+Vw== X-Google-Smtp-Source: AGHT+IGOaAcGCE89gIzW+3YFH0ii7m+/xgB4hapmpVd3cOor1RtQOnTIRuzge5YAuGQFmHHEkQ72LLZN2vUa7ufzR9Y= X-Received: by 2002:a17:90b:3c04:b0:31f:69fd:a72b with SMTP id 98e67ed59e1d1-321162b7285mr2861811a91.29.1754108256151; Fri, 01 Aug 2025 21:17:36 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Fri, 1 Aug 2025 18:17:25 -1000 X-Gm-Features: Ac12FXwxO46_1UmSTYj6bUTrLbtesJ3SyOSX5aMe-o066hSDyJJLqhZD3qzsxtw Message-ID: Subject: Re: copying lines from one .h to another with different copyrights To: Rick Macklem Cc: FreeBSD CURRENT Content-Type: multipart/alternative; boundary="000000000000818307063b5a27ae" X-Spamd-Result: default: False [-3.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20230601.gappssmtp.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; ARC_NA(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TAGGED_RCPT(0.00)[]; RCVD_TLS_LAST(0.00)[]; MISSING_XM_UA(0.00)[]; R_SPF_NA(0.00)[no SPF record]; FREEMAIL_TO(0.00)[gmail.com]; RCPT_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; FROM_HAS_DN(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::102c:from]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_DN_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; DKIM_TRACE(0.00)[bsdimp-com.20230601.gappssmtp.com:+] X-Rspamd-Queue-Id: 4bv8gC1cnfz43ZC X-Spamd-Bar: -- --000000000000818307063b5a27ae Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It's in the edge. One could legitimately go either way. I'd be inclined to include it, or some other acknowledgement. If you really didn't want to, that's defenible, but including is nicer. Warner On Fri, Aug 1, 2025, 1:34=E2=80=AFPM Rick Macklem = wrote: > On Fri, Aug 1, 2025 at 4:00=E2=80=AFPM Warner Losh wrote= : > > > > Got diff? Hard to know without it... > > > > But if it's just interface info and the files are >~200 lines, I'd just > copy. > > > > If there are comments, or the files are small, copy the > copyright/license too. > I've attached the diff. The file it is taken out of is 305 lines long. > > rick > > > > > Warner > > > > On Fri, Aug 1, 2025, 12:53=E2=80=AFPM Rick Macklem > wrote: > >> > >> Hi, > >> > >> I am working on a patch to fix the kgssapi so that it > >> works for MIT's Kerberos. > >> > >> I have copied about 20lines from the MIT .h file in > >> /usr/include/gssapi/gssapi_krb5.h to /usr/src/sys/kgssapi/gssapi.h. > >> (The kernel one is a small subset that the kernel code needs.) > >> > >> My question is... > >> Since the two .h files have different copyright notices, do I need > >> to copy the copyright notice into /usr/src/sys/kgssapi/gssapi.h? > >> > >> Thanks for any info (amateur lawyers welcome to comment), rick > >> > --000000000000818307063b5a27ae Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
It's in the edge. One could legitimately go either wa= y. I'd be inclined to include it, or some other acknowledgement.=C2=A0 = If you really didn't want to, that's defenible, but including is ni= cer.

Warner

On Fri, Aug 1, 2025, 1:34=E2=80=AFPM Rick Macklem <rick.macklem@gmail.com> wrote:
On Fri, Aug 1, 2025 at 4:00=E2=80=AFPM War= ner Losh <imp@bsdimp.com> wrote:
>
> Got diff? Hard to know without it...
>
> But if it's just interface info and the files are >~200 lines, = I'd just copy.
>
> If there are comments, or the files are small, copy the copyright/lice= nse too.
I've attached the diff. The file it is taken out of is 305 lines long.<= br>
rick

>
> Warner
>
> On Fri, Aug 1, 2025, 12:53=E2=80=AFPM Rick Macklem <rick.mackle= m@gmail.com> wrote:
>>
>> Hi,
>>
>> I am working on a patch to fix the kgssapi so that it
>> works for MIT's Kerberos.
>>
>> I have copied about 20lines from the MIT .h file in
>> /usr/include/gssapi/gssapi_krb5.h to /usr/src/sys/kgssapi/gssapi.h= .
>> (The kernel one is a small subset that the kernel code needs.)
>>
>> My question is...
>> Since the two .h files have different copyright notices, do I need=
>> to copy the copyright notice into /usr/src/sys/kgssapi/gssapi.h? >>
>> Thanks for any info (amateur lawyers welcome to comment), rick
>>
--000000000000818307063b5a27ae--